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
cachix push jailnix result-tests if [ -e ~/.config/cachix/cachix.dhall ]; then
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
cachix push jailnix result-website if [ -e ~/.config/cachix/cachix.dhall ]; then
- run-tests: cd jail.nix && cachix watch-exec jailnix -- result-tests/run-tests/bin/run-tests cachix push jailnix result-website
- check-fmt: cd jail.nix && result-tests/check-fmt/bin/check-fmt fi
- 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