Prevent CI from failing if secret is not available

Sourcehut will not populate secrets when running CI for patches, but it
would be better if CI runs and passes, even if CI can't push the
artifacts.
This commit is contained in:
Alex David 2026-02-06 14:45:49 -08:00
commit c141cf8cc6

View file

@ -14,8 +14,20 @@ tasks:
- build-pkgs: | - build-pkgs: |
cd jail.nix cd jail.nix
nix build --print-build-logs --out-link result-tests ./tests#all-for-ci nix build --print-build-logs --out-link result-tests ./tests#all-for-ci
if [ -e ~/.config/cachix/cachix.dhall ]; then
cachix push jailnix result-tests cachix push jailnix result-tests
fi
nix build --print-build-logs --out-link result-website ./website#default nix build --print-build-logs --out-link result-website ./website#default
if [ -e ~/.config/cachix/cachix.dhall ]; then
cachix push jailnix result-website cachix push jailnix result-website
- run-tests: cd jail.nix && cachix watch-exec jailnix -- result-tests/run-tests/bin/run-tests fi
- check-fmt: cd jail.nix && result-tests/check-fmt/bin/check-fmt - run-tests: |
cd jail.nix
if [ -e ~/.config/cachix/cachix.dhall ]; then
cachix watch-exec jailnix -- result-tests/run-tests/bin/run-tests
else
result-tests/run-tests/bin/run-tests
fi
- check-fmt: |
cd jail.nix
result-tests/check-fmt/bin/check-fmt