github: use magix nix cache

This commit is contained in:
Aly Raffauf 2024-07-15 08:22:10 -04:00
parent 98aaa97429
commit 34a837a0da
3 changed files with 8 additions and 0 deletions

View file

@ -16,6 +16,7 @@ jobs:
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.email "github-actions[bot]@users.noreply.github.com"
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/update-flake-lock@main - uses: DeterminateSystems/update-flake-lock@main
with: with:
token: ${{ secrets.FLAKE_UPDATE_PAT }} token: ${{ secrets.FLAKE_UPDATE_PAT }}

View file

@ -13,6 +13,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check formatting - name: Check formatting
run: nix fmt -- -c . run: nix fmt -- -c .
eval-check: eval-check:
@ -22,5 +23,6 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check flake evaluation - name: Check flake evaluation
run: nix flake check run: nix flake check

View file

@ -13,6 +13,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Drybuild fallarbor - name: Drybuild fallarbor
run: nix build --dry-run .#nixosConfigurations.fallarbor.config.system.build.toplevel run: nix build --dry-run .#nixosConfigurations.fallarbor.config.system.build.toplevel
lavaridge-drybuild: lavaridge-drybuild:
@ -22,6 +23,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Drybuild lavaridge - name: Drybuild lavaridge
run: nix build --dry-run .#nixosConfigurations.lavaridge.config.system.build.toplevel run: nix build --dry-run .#nixosConfigurations.lavaridge.config.system.build.toplevel
mauville-drybuild: mauville-drybuild:
@ -31,6 +33,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Drybuild mauville - name: Drybuild mauville
run: nix build --dry-run .#nixosConfigurations.mauville.config.system.build.toplevel run: nix build --dry-run .#nixosConfigurations.mauville.config.system.build.toplevel
petalburg-drybuild: petalburg-drybuild:
@ -40,6 +43,7 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Drybuild petalburg - name: Drybuild petalburg
run: nix build --dry-run .#nixosConfigurations.petalburg.config.system.build.toplevel run: nix build --dry-run .#nixosConfigurations.petalburg.config.system.build.toplevel
rustboro-drybuild: rustboro-drybuild:
@ -49,5 +53,6 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Drybuild rustboro - name: Drybuild rustboro
run: nix build --dry-run .#nixosConfigurations.rustboro.config.system.build.toplevel run: nix build --dry-run .#nixosConfigurations.rustboro.config.system.build.toplevel