Skip to content

Commit d9540f5

Browse files
committed
tools: pin Cachix version on x86_64_darwin
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #67738 Fixes: #67735 Refs: cachix/cachix@e3609f9 Refs: cachix/cachix-action#224 Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
1 parent 3949e0a commit d9540f5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/build-shared.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,22 @@ jobs:
5757
with:
5858
extra_nix_config: sandbox = true
5959

60+
- name: Build Cachix
61+
if: ${{ inputs.runner == 'macos-15-intel' }}
62+
id: build_cachix
63+
run: |
64+
nix-build --no-out-link -I "nixpkgs=$TAR_DIR/tools/nix/pkgs.nix" -E '(import <nixpkgs> {}).cachix'
65+
{
66+
printf "BIN="
67+
nix-instantiate --eval --raw -I "nixpkgs=$TAR_DIR/tools/nix/pkgs.nix" -E 'with (import <nixpkgs> {});lib.getExe cachix'
68+
printf '\n'
69+
} >> "$GITHUB_OUTPUT"
70+
6071
- uses: cachix/cachix-action@38b082610b782e7e93e209c35fd730d399dee866 # v17
6172
with:
6273
name: nodejs
6374
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
75+
cachixBin: ${{ steps.build_cachix.outputs.BIN || '' }}
6476

6577
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
6678
if: inputs.v8-nar

0 commit comments

Comments
 (0)