GeezerVison is showing github.com — tools: pin remaining Cachix version on x86_64_darwin · nodejs/node@7e4d0db
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/benchmark.yml +13-1Lines changed: 13 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -100,10 +100,22 @@ jobs: |
100 | 100 | with: |
101 | 101 | extra_nix_config: sandbox = true |
102 | 102 |
|
| 103 | + - name: Build Cachix |
| 104 | + if: ${{ matrix.runner == 'macos-15-intel' }} |
| 105 | + id: build_cachix |
| 106 | + run: | |
| 107 | + nix-build --no-out-link -I "nixpkgs=tools/nix/pkgs.nix" -E '(import <nixpkgs> {}).cachix' |
| 108 | + { |
| 109 | + printf "BIN=" |
| 110 | + nix-instantiate --eval --raw -I "nixpkgs=tools/nix/pkgs.nix" -E 'with (import <nixpkgs> {});lib.getExe cachix' |
| 111 | + printf '\n' |
| 112 | + } >> "$GITHUB_OUTPUT" |
| 113 | +
|
103 | 114 | - uses: cachix/cachix-action@38b082610b782e7e93e209c35fd730d399dee866 # v17 |
104 | 115 | with: |
105 | 116 | # We do not pass any `authToken` to avoid polluting the cache with potentially untrusted code. |
106 | 117 | name: nodejs |
| 118 | + cachixBin: ${{ steps.build_cachix.outputs.BIN || '' }} |
107 | 119 |
|
108 | 120 | - name: Configure sccache |
109 | 121 | uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 |
@@ -119,7 +131,7 @@ jobs: |
119 | 131 | run: | |
120 | 132 | nix-shell \ |
121 | 133 | -I nixpkgs=./tools/nix/pkgs.nix \ |
122 | | - --pure --keep TAR_DIR --keep FLAKY_TESTS \ |
| 134 | + --pure \ |
123 | 135 | --keep SCCACHE_GHA_ENABLED --keep SCCACHE_GHA_RW_MODE \ |
124 | 136 | --keep ACTIONS_CACHE_SERVICE_V2 --keep ACTIONS_RESULTS_URL --keep ACTIONS_RUNTIME_TOKEN \ |
125 | 137 | --arg withPerfetto ${{ matrix.perfetto || false }} \ |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/nix-changes.yml +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,10 +61,22 @@ jobs: |
61 | 61 | with: |
62 | 62 | extra_nix_config: sandbox = true |
63 | 63 |
|
| 64 | + - name: Build Cachix |
| 65 | + if: ${{ matrix.runner == 'macos-15-intel' }} |
| 66 | + id: build_cachix |
| 67 | + run: | |
| 68 | + nix-build --no-out-link -I "nixpkgs=tools/nix/pkgs.nix" -E '(import <nixpkgs> {}).cachix' |
| 69 | + { |
| 70 | + printf "BIN=" |
| 71 | + nix-instantiate --eval --raw -I "nixpkgs=tools/nix/pkgs.nix" -E 'with (import <nixpkgs> {});lib.getExe cachix' |
| 72 | + printf '\n' |
| 73 | + } >> "$GITHUB_OUTPUT" |
| 74 | +
|
64 | 75 | - uses: cachix/cachix-action@38b082610b782e7e93e209c35fd730d399dee866 # v17 |
65 | 76 | with: |
66 | 77 | authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} |
67 | 78 | name: nodejs |
| 79 | + cachixBin: ${{ steps.build_cachix.outputs.BIN || '' }} |
68 | 80 |
|
69 | 81 | - name: Compute requisites after change |
70 | 82 | run: ./tools/nix/list-requisites.sh > requisites-${{ matrix.system }}-after.list |
|