Commit 122715e5620 for nodejs
commit 122715e56206c428490ba599096a17021fbab338
Author: Antoine du Hamel <duhamelantoine1995@gmail.com>
Date: Wed Nov 25 18:19:04 2026 +0100
tools: pin remaining Cachix version on x86_64_darwin
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/67743
Refs: https://github.com/nodejs/node/pull/67738
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 033e677a56b..ac996579d67 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -100,10 +100,22 @@ jobs:
with:
extra_nix_config: sandbox = true
+ - name: Build Cachix
+ if: ${{ matrix.runner == 'macos-15-intel' }}
+ id: build_cachix
+ run: |
+ nix-build --no-out-link -I "nixpkgs=tools/nix/pkgs.nix" -E '(import <nixpkgs> {}).cachix'
+ {
+ printf "BIN="
+ nix-instantiate --eval --raw -I "nixpkgs=tools/nix/pkgs.nix" -E 'with (import <nixpkgs> {});lib.getExe cachix'
+ printf '\n'
+ } >> "$GITHUB_OUTPUT"
+
- uses: cachix/cachix-action@38b082610b782e7e93e209c35fd730d399dee866 # v17
with:
# We do not pass any `authToken` to avoid polluting the cache with potentially untrusted code.
name: nodejs
+ cachixBin: ${{ steps.build_cachix.outputs.BIN || '' }}
- name: Configure sccache
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
@@ -119,7 +131,7 @@ jobs:
run: |
nix-shell \
-I nixpkgs=./tools/nix/pkgs.nix \
- --pure --keep TAR_DIR --keep FLAKY_TESTS \
+ --pure \
--keep SCCACHE_GHA_ENABLED --keep SCCACHE_GHA_RW_MODE \
--keep ACTIONS_CACHE_SERVICE_V2 --keep ACTIONS_RESULTS_URL --keep ACTIONS_RUNTIME_TOKEN \
--arg withPerfetto ${{ matrix.perfetto || false }} \
diff --git a/.github/workflows/nix-changes.yml b/.github/workflows/nix-changes.yml
index 77964468915..16ccfe1cdf1 100644
--- a/.github/workflows/nix-changes.yml
+++ b/.github/workflows/nix-changes.yml
@@ -61,10 +61,22 @@ jobs:
with:
extra_nix_config: sandbox = true
+ - name: Build Cachix
+ if: ${{ matrix.runner == 'macos-15-intel' }}
+ id: build_cachix
+ run: |
+ nix-build --no-out-link -I "nixpkgs=tools/nix/pkgs.nix" -E '(import <nixpkgs> {}).cachix'
+ {
+ printf "BIN="
+ nix-instantiate --eval --raw -I "nixpkgs=tools/nix/pkgs.nix" -E 'with (import <nixpkgs> {});lib.getExe cachix'
+ printf '\n'
+ } >> "$GITHUB_OUTPUT"
+
- uses: cachix/cachix-action@38b082610b782e7e93e209c35fd730d399dee866 # v17
with:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
name: nodejs
+ cachixBin: ${{ steps.build_cachix.outputs.BIN || '' }}
- name: Compute requisites after change
run: ./tools/nix/list-requisites.sh > requisites-${{ matrix.system }}-after.list