Skip to content

Commit 90fd0ad

Browse files
chore: simplify Nix setup action (#97)
* chore: simplify nix flake * fixup! chore: simplify nix flake
1 parent d990716 commit 90fd0ad

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: setup nix
2-
description: install Determinate Nix and enable FlakeHub Cache
2+
description: Install Nix and restore the shared Nix store cache
33
runs:
44
using: composite
55
steps:
6-
- uses: DeterminateSystems/determinate-nix-action@4eea0b33e3d1f02ecfe37cf16e7204c424009606 # v3.21.0
7-
- uses: DeterminateSystems/flakehub-cache-action@c01e819d047464c3edf6ba778f075952af5a3aa7 # v3.21.0
6+
- uses: nixbuild/nix-quick-install-action@9f63be77f412a248c9d9a65a4c82cf066cdf8f0c # v35
7+
- uses: nix-community/cache-nix-action@7df957e333c1e5da7721f60227dbba6d06080569 # v7.0.2
8+
with:
9+
primary-key: nix-v0-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', 'flake.lock', '**/Cargo.toml', 'Cargo.lock', 'rust-toolchain.toml') }}
10+
restore-prefixes-first-match: nix-v0-${{ runner.os }}-${{ runner.arch }}-
11+
purge: true
12+
purge-prefixes: nix-v0-${{ runner.os }}-
13+
purge-created: 0
14+
purge-primary-key: never

.github/workflows/formal.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
id-token: write
1212
jobs:
1313
verify:
14-
runs-on: ubuntu-slim
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1717
- uses: ./.github/actions/setup-nix

0 commit comments

Comments
 (0)