Skip to content

Commit 8ed0f86

Browse files
authored
Use Determinate Nix in CI (#177)
* Use Determinate Nix in CI * Use ubuntu-latest for flake lock update workflow
1 parent 1b1d144 commit 8ed0f86

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
- uses: DeterminateSystems/nix-installer-action@main
13+
with:
14+
determinate: true
1315
- uses: DeterminateSystems/flakehub-cache-action@main
1416
- name: Check rustfmt
1517
run: nix develop --command cargo fmt -- --check
@@ -19,6 +21,8 @@ jobs:
1921
steps:
2022
- uses: actions/checkout@v3
2123
- uses: DeterminateSystems/nix-installer-action@main
24+
with:
25+
determinate: true
2226
- uses: DeterminateSystems/flakehub-cache-action@main
2327
- name: Build
2428
run: nix build -L
@@ -38,6 +42,8 @@ jobs:
3842
with:
3943
fetch-depth: 0
4044
- uses: DeterminateSystems/nix-installer-action@main
45+
with:
46+
determinate: true
4147
- uses: DeterminateSystems/flakehub-cache-action@main
4248
- name: Check nixpkgs-fmt formatting
4349
run: nix develop --command sh -c "git ls-files '*.nix' | xargs nixpkgs-fmt --check"
@@ -57,6 +63,8 @@ jobs:
5763
with:
5864
fetch-depth: 0
5965
- uses: DeterminateSystems/nix-installer-action@main
66+
with:
67+
determinate: true
6068
- uses: DeterminateSystems/flakehub-cache-action@main
6169
- name: Verify synthesize integration test still passes
6270
run: nix develop -c ./synthesize/integration-test-cases/verify.sh

.github/workflows/update-flake-lock.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: DeterminateSystems/nix-installer-action@main
14+
with:
15+
determinate: true
1416
- uses: DeterminateSystems/flakehub-cache-action@main
1517
- uses: DeterminateSystems/update-flake-lock@main
1618
with:

.github/workflows/update.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
lockfile:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
@@ -16,6 +16,8 @@ jobs:
1616
fail-mode: true
1717
- name: Install Nix
1818
uses: DeterminateSystems/nix-installer-action@main
19+
with:
20+
determinate: true
1921
- name: Enable FlakeHub cache
2022
uses: DeterminateSystems/flakehub-cache-action@main
2123
- name: Update flake.lock

0 commit comments

Comments
 (0)