Switch Nix installer & cache for CI

This commit is contained in:
Brenden Matthews
2025-02-17 09:41:31 -05:00
parent 35c5a05280
commit edeee8a565

View File

@@ -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