Skip to content

Commit d018ea7

Browse files
Switch to Determinate Nix (#90)
* Switch to Determinate Nix * Change runner group in build workflow * Fix user name --------- Co-authored-by: Guillaume LEGENDRE <[email protected]>
1 parent 41afa52 commit d018ea7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,23 @@ concurrency:
77
jobs:
88
tests:
99
runs-on:
10-
group: aws-highmemory-32-plus-priv
10+
group: aws-highmemory-32-plus-nix
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: cachix/install-nix-action@v27
13+
- uses: DeterminateSystems/nix-installer-action@main
1414
with:
15-
nix_path: nixpkgs=channel:nixos-unstable
16-
jobs: 4
17-
cores: 12
18-
- uses: cachix/cachix-action@v14
15+
extra-conf: |
16+
max-jobs = 4
17+
cores = 12
18+
sandbox-fallback = false
19+
- name: Nix info
20+
run: nix-shell -p nix-info --run "nix-info -m"
21+
- uses: cachix/cachix-action@v16
1922
with:
2023
name: huggingface
2124
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
2225
env:
23-
USER: github_runner
24-
- name: Nix info
25-
run: nix-shell -p nix-info --run "nix-info -m"
26+
USER: runner
2627
- name: Check formatting
2728
run: nix fmt -- --ci
2829
- name: Build

0 commit comments

Comments
 (0)