Skip to content

Commit

Permalink
Optimize Cachix caching in CI workflow
Browse files Browse the repository at this point in the history
- Add explicit caching of project dependencies before main build
- Enhance Cachix push strategy to include both dependencies and project artifacts
  • Loading branch information
NikolaiSch committed Feb 14, 2025
1 parent 04c0b9f commit d4ddbae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-ssh-cachix-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
export CACHIX_ACTIVATE_TOKEN=${{ secrets.CACHIX_ACTIVATE_TOKEN }}
export CACHIX_AUTH_TOKEN=${{ secrets.CACHIX_AUTH_TOKEN }}
nix build .#deps --print-out-paths | cachix push nikmctrl
nix build . --print-out-paths | cachix push nikmctrl
spec=$(nix build .#cachix-deploy --print-out-paths)
cachix push nikmctrl $spec
Expand Down

0 comments on commit d4ddbae

Please sign in to comment.