Skip to content

Commit

Permalink
ci(test): add nix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed Dec 22, 2023
1 parent 917f722 commit 83bdb98
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,14 @@ jobs:
extra_nix_config: |
accept-flake-config = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix flake check
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BUILDER_TOKEN }}
- uses: gacts/run-and-post-run@v1
with:
run: nix flake check
post: |
TARGET="ssh://[email protected]"
# took this filter list from cachix action
find /nix/store -mindepth 1 -maxdepth 1 -type d -not -name ".*" -not -name "*.{drv,drv.chroot,check,lock}" -print -exec nix copy --to $TARGET {} \;

0 comments on commit 83bdb98

Please sign in to comment.