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:
parent
54d4c6c0e7
commit
c141cf8cc6
1 changed files with 16 additions and 4 deletions
16
.build.yml
16
.build.yml
|
|
@ -14,8 +14,20 @@ tasks:
|
|||
- build-pkgs: |
|
||||
cd jail.nix
|
||||
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
|
||||
fi
|
||||
nix build --print-build-logs --out-link result-website ./website#default
|
||||
if [ -e ~/.config/cachix/cachix.dhall ]; then
|
||||
cachix push jailnix result-website
|
||||
- run-tests: cd jail.nix && cachix watch-exec jailnix -- result-tests/run-tests/bin/run-tests
|
||||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue