Skip to content

Commit ee126f1

Browse files
ci: align linux nix cache key with macos
mirror the macos primary-key hash list so the linux key invalidates on the same nix inputs. `package.nix` reads `version` from `package.json`, and the nix build references `default.nix` plus the rust workspace `Cargo.toml` files, which were previously omitted from the linux key. Co-authored-by: Codesmith <[email protected]>
1 parent cf76046 commit ee126f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • .github/actions/setup-linux-nix-action-cache

‎.github/actions/setup-linux-nix-action-cache/action.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
- name: Cache Linux Nix store
2020
uses: nix-community/cache-nix-action@7df957e333c1e5da7721f60227dbba6d06080569 # v7.0.2
2121
with:
22-
primary-key: nix-buildnative-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('flake.lock', 'flake.nix', 'package.nix', 'nix/**/*.nix', 'rust-toolchain.toml', 'rust/Cargo.lock') }}
22+
primary-key: nix-buildnative-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('flake.lock', 'flake.nix', 'default.nix', 'package.nix', 'package.json', 'nix/**/*.nix', 'rust-toolchain.toml', 'rust/Cargo.lock', 'rust/**/Cargo.toml') }}
2323
restore-prefixes-first-match: nix-buildnative-${{ runner.os }}-${{ runner.arch }}-
2424
gc-max-store-size-linux: 2000000000
2525
purge: true

0 commit comments

Comments
 (0)