From 34a837a0daca6900feb8e03e7cfbc48ac36bf9ed Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 15 Jul 2024 08:22:10 -0400 Subject: [PATCH] github: use magix nix cache --- .github/workflows/flake-update.yml | 1 + .github/workflows/nix-check.yml | 2 ++ .github/workflows/nix-drybuild.yml | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml index bf27b23c..c049d954 100644 --- a/.github/workflows/flake-update.yml +++ b/.github/workflows/flake-update.yml @@ -16,6 +16,7 @@ jobs: git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/update-flake-lock@main with: token: ${{ secrets.FLAKE_UPDATE_PAT }} diff --git a/.github/workflows/nix-check.yml b/.github/workflows/nix-check.yml index 66c0bfe4..e75e3964 100644 --- a/.github/workflows/nix-check.yml +++ b/.github/workflows/nix-check.yml @@ -13,6 +13,7 @@ jobs: with: fetch-depth: 1 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Check formatting run: nix fmt -- -c . eval-check: @@ -22,5 +23,6 @@ jobs: with: fetch-depth: 1 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Check flake evaluation run: nix flake check diff --git a/.github/workflows/nix-drybuild.yml b/.github/workflows/nix-drybuild.yml index b1eb7969..795647e4 100644 --- a/.github/workflows/nix-drybuild.yml +++ b/.github/workflows/nix-drybuild.yml @@ -13,6 +13,7 @@ jobs: with: fetch-depth: 1 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Drybuild fallarbor run: nix build --dry-run .#nixosConfigurations.fallarbor.config.system.build.toplevel lavaridge-drybuild: @@ -22,6 +23,7 @@ jobs: with: fetch-depth: 1 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Drybuild lavaridge run: nix build --dry-run .#nixosConfigurations.lavaridge.config.system.build.toplevel mauville-drybuild: @@ -31,6 +33,7 @@ jobs: with: fetch-depth: 1 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Drybuild mauville run: nix build --dry-run .#nixosConfigurations.mauville.config.system.build.toplevel petalburg-drybuild: @@ -40,6 +43,7 @@ jobs: with: fetch-depth: 1 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Drybuild petalburg run: nix build --dry-run .#nixosConfigurations.petalburg.config.system.build.toplevel rustboro-drybuild: @@ -49,5 +53,6 @@ jobs: with: fetch-depth: 1 - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Drybuild rustboro run: nix build --dry-run .#nixosConfigurations.rustboro.config.system.build.toplevel