Compare commits

...

3 commits

Author SHA1 Message Date
2174c8b1bf Merge pull request 'push to cachix if build succeeds' (#4) from cachix-push into main
Reviewed-on: #4
2024-05-26 20:47:08 -05:00
6854c4bf32 Add cachix auth token env.
All checks were successful
Build / nix-build (native-x86_64, durincore) (pull_request) Successful in 24m30s
Build / nix-build (native-aarch64, varda) (pull_request) Successful in 47m46s
2024-05-26 17:27:32 -05:00
0e9ebf5d8d push to cachix if build succeeds
Some checks failed
Build / nix-build (native-x86_64, durincore) (pull_request) Failing after 7m24s
Build / nix-build (native-aarch64, varda) (pull_request) Has been cancelled
2024-05-26 17:16:42 -05:00

View file

@ -42,4 +42,9 @@ jobs:
--fallback \
-v \
--log-format raw \
> >(tee stdout.log) 2> >(tee /tmp/nix-build-err.log >&2)
> >(tee stdout.log) 2> >(tee /tmp/nix-build-err.log >&2)
- name: Push to Cachix
if: success()
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: nix build ".#top.${{ matrix.system }}" --json | jq -r .[].drvPath | cachix push hsndev