Skip to content

Commit

Permalink
Switch Nix installer & cache for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Feb 17, 2025
1 parent 35c5a05 commit edeee8a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v16
- name: Setup Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v9
- uses: nixbuild/nix-quick-install-action@v29
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size: 1073741824
purge: true
purge-prefixes: cache-${{ runner.os }}-
purge-created: 0
purge-primary-key: never
- run: nix build
- run: nix flake check

0 comments on commit edeee8a

Please sign in to comment.