From 59e1d18da60a499d4bc8f0f400b4545eefe26b14 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 2 May 2025 14:55:51 -0300 Subject: [PATCH 1/4] update nix cache --- .github/workflows/test.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6422e9..6c84940 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,18 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: 'recursive' + submodules: "recursive" - uses: cachix/install-nix-action@v26 - - uses: DeterminateSystems/magic-nix-cache-action@v4 + - name: Nix cache + uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a + with: + # restore and save a cache using this key + primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} + # if there's no cache hit, restore a cache by this prefix + restore-prefixes-first-match: nix-${{ runner.os }}- + # collect garbage until the Nix store size (in bytes) is at most this number + # before trying to save a new cache + gc-max-store-size-linux: 2G - name: Ensure flake.lock was committed run: ls flake.lock - run: nix flake check -L From 95974f74838ffe7104032f4a9782e356374b183d Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 2 May 2025 15:38:16 -0300 Subject: [PATCH 2/4] slight comment change --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c84940..1b12be2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,12 +18,12 @@ jobs: - name: Nix cache uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a with: - # restore and save a cache using this key + # restore and save a cache using this key. primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} - # if there's no cache hit, restore a cache by this prefix + # if there's no cache hit, restore a cache by this prefix. restore-prefixes-first-match: nix-${{ runner.os }}- # collect garbage until the Nix store size (in bytes) is at most this number - # before trying to save a new cache + # before trying to save a new cache. gc-max-store-size-linux: 2G - name: Ensure flake.lock was committed run: ls flake.lock From 74f539a0e39b42d12e78bf3917223f6538af168c Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 3 May 2025 11:06:18 -0300 Subject: [PATCH 3/4] use nix-quick-install-action --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b12be2..79bb556 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,9 +14,12 @@ jobs: - uses: actions/checkout@v4 with: submodules: "recursive" - - uses: cachix/install-nix-action@v26 + - uses: nixbuild/nix-quick-install-action@8505cd40ae3d4791ca658f2697c5767212e5ce71 # v30 + nix_conf: | + keep-env-derivations = true + keep-outputs = true - name: Nix cache - uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a + uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6 with: # restore and save a cache using this key. primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} From ab2fb69efac72f8dc20cfe69c2ccdf64ef2e1a8c Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 3 May 2025 11:08:40 -0300 Subject: [PATCH 4/4] fix input --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 79bb556..64a7907 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,9 +15,10 @@ jobs: with: submodules: "recursive" - uses: nixbuild/nix-quick-install-action@8505cd40ae3d4791ca658f2697c5767212e5ce71 # v30 - nix_conf: | - keep-env-derivations = true - keep-outputs = true + with: + nix_conf: | + keep-env-derivations = true + keep-outputs = true - name: Nix cache uses: nix-community/cache-nix-action@135667ec418502fa5a3598af6fb9eb733888ce6a # v6 with: