Switch Nix installer & cache for CI
This commit is contained in:
15
.github/workflows/nix.yaml
vendored
15
.github/workflows/nix.yaml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user