1414 default : true
1515 type : boolean
1616
17+ concurrency :
18+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+ cancel-in-progress : true
20+
1721permissions : read-all
1822
1923jobs :
2933 extra_nix_config :
3034 experimental-features = nix-command flakes
3135 github_token : ${{ secrets.GITHUB_TOKEN }}
36+ use_cache : false
3237 - run : nix flake show --all-systems --json
3338
3439 pre-commit-checks :
4146 dogfood : ${{ github.event_name == 'workflow_dispatch' && inputs.dogfood || github.event_name != 'workflow_dispatch' }}
4247 extra_nix_config : experimental-features = nix-command flakes
4348 github_token : ${{ secrets.GITHUB_TOKEN }}
44- - uses : DeterminateSystems/magic-nix-cache-action@main
4549 - run : ./ci/gha/tests/pre-commit-checks
4650
4751 basic-checks :
9296 dogfood : ${{ github.event_name == 'workflow_dispatch' && inputs.dogfood || github.event_name != 'workflow_dispatch' }}
9397 # The sandbox would otherwise be disabled by default on Darwin
9498 extra_nix_config : " sandbox = true"
95- - uses : DeterminateSystems/magic-nix-cache-action@main
9699 # Since ubuntu 22.30, unprivileged usernamespaces are no longer allowed to map to the root user:
97100 # https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
98101 - run : sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
@@ -122,13 +125,13 @@ jobs:
122125 cat coverage-reports/index.txt >> $GITHUB_STEP_SUMMARY
123126 if : ${{ matrix.instrumented }}
124127 - name : Upload coverage reports
125- uses : actions/upload-artifact@v4
128+ uses : actions/upload-artifact@v5
126129 with :
127130 name : coverage-reports
128131 path : coverage-reports/
129132 if : ${{ matrix.instrumented }}
130133 - name : Upload installer tarball
131- uses : actions/upload-artifact@v4
134+ uses : actions/upload-artifact@v5
132135 with :
133136 name : installer-${{matrix.os}}
134137 path : out/*
@@ -161,7 +164,7 @@ jobs:
161164 steps :
162165 - uses : actions/checkout@v5
163166 - name : Download installer tarball
164- uses : actions/download-artifact@v5
167+ uses : actions/download-artifact@v6
165168 with :
166169 name : installer-${{matrix.os}}
167170 path : out
@@ -171,7 +174,7 @@ jobs:
171174 echo "installer-url=file://$GITHUB_WORKSPACE/out" >> "$GITHUB_OUTPUT"
172175 TARBALL_PATH="$(find "$GITHUB_WORKSPACE/out" -name 'nix*.tar.xz' -print | head -n 1)"
173176 echo "tarball-path=file://$TARBALL_PATH" >> "$GITHUB_OUTPUT"
174- - uses : cachix/install-nix-action@v31
177+ - uses : cachix/install-nix-action@7ec16f2c061ab07b235a7245e06ed46fe9a1cab6 # v31.8.3
175178 if : ${{ !matrix.experimental-installer }}
176179 with :
177180 install_url : ${{ format('{0}/install', steps.installer-tarball-url.outputs.installer-url) }}
@@ -227,12 +230,13 @@ jobs:
227230 - uses : actions/checkout@v5
228231 with :
229232 fetch-depth : 0
230- - uses : cachix/ install-nix-action@v31
233+ - uses : ./.github/actions/ install-nix-action
231234 with :
232- install_url : https://releases.nixos.org/nix/nix-2.20.3/install
233- - uses : DeterminateSystems/magic-nix-cache-action@main
234- - run : echo NIX_VERSION="$(nix --experimental-features 'nix-command flakes' eval .\#nix.version | tr -d \")" >> $GITHUB_ENV
235- - run : nix --experimental-features 'nix-command flakes' build .#dockerImage -L
235+ dogfood : false
236+ extra_nix_config : |
237+ experimental-features = flakes nix-command
238+ - run : echo NIX_VERSION="$(nix eval .\#nix.version | tr -d \")" >> $GITHUB_ENV
239+ - run : nix build .#dockerImage -L
236240 - run : docker load -i ./result/image.tar.gz
237241 - run : docker tag nix:$NIX_VERSION ${{ secrets.DOCKERHUB_USERNAME }}/nix:$NIX_VERSION
238242 - run : docker tag nix:$NIX_VERSION ${{ secrets.DOCKERHUB_USERNAME }}/nix:master
@@ -289,7 +293,6 @@ jobs:
289293 extra_nix_config :
290294 experimental-features = nix-command flakes
291295 github_token : ${{ secrets.GITHUB_TOKEN }}
292- - uses : DeterminateSystems/magic-nix-cache-action@main
293296 - run : nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH MAX_FLAKES=25 flake-regressions/eval-all.sh
294297
295298 profile_build :
@@ -310,7 +313,6 @@ jobs:
310313 extra_nix_config : |
311314 experimental-features = flakes nix-command ca-derivations impure-derivations
312315 max-jobs = 1
313- - uses : DeterminateSystems/magic-nix-cache-action@main
314316 - run : |
315317 nix build -L --file ./ci/gha/profile-build buildTimeReport --out-link build-time-report.md
316318 cat build-time-report.md >> $GITHUB_STEP_SUMMARY
0 commit comments