Skip to content

Commit

Permalink
More options for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmohrin committed Nov 23, 2023
1 parent 333d908 commit fc51d80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ jobs:
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: "store = /home/runner/nix"
extra_nix_config: |
store = /home/runner/nix
auto-optimise-store = true
keep-outputs = true
keep-derivations = true
- name: Cache Nix
uses: actions/cache@v3.3.0
with:
key: ${{ hashfiles('flake.nix') }}
path: ~/nix
# See https://github.com/actions/cache/issues/749#issuecomment-1551707934
- run: nix build '.#nactl'
- run: cp /home/runner/nix$(realpath result) nactl.pdf
- run: nix build '.#kactl'
Expand Down

0 comments on commit fc51d80

Please sign in to comment.