Skip to content

Commit a108a90

Browse files
committed
ci: upgrade nix flake ci to use determinate action
Upgrade from nix-installer-action to determinate-nix-action for better performance and reliability. Remove obsolete --experimental-features flags since flakes are now stable. Add permissions for FlakeHub cache authentication to improve CI times.
1 parent a20a15c commit a108a90

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,21 @@ jobs:
6464
quality: [quality, test, test:e2e]
6565
name: Nix Flake CI
6666
runs-on: ubuntu-latest
67+
permissions:
68+
id-token: write # Required for FlakeHub cache authentication
69+
contents: read
6770
steps:
6871
- name: Checkout repository
6972
uses: actions/checkout@v6
70-
- name: Install Nix
71-
uses: DeterminateSystems/nix-installer-action@v21
73+
- name: Install Determinate Nix
74+
uses: DeterminateSystems/determinate-nix-action@v3
7275
- name: Enable Magic Nix Cache
7376
uses: DeterminateSystems/magic-nix-cache-action@v13
7477
- name: Install dependencies (Nix devShell)
75-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun install
78+
run: nix develop .# --command bun install
7679

7780
- name: Build (Nix devShell)
78-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun build
81+
run: nix develop .# --command bun build
7982

8083
- name: Quality checks (Nix devShell)
81-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun ${{matrix.quality}}
84+
run: nix develop .# --command bun ${{matrix.quality}}

0 commit comments

Comments
 (0)