Skip to content

Commit bba2308

Browse files
committed
pre-install cachix on Darwin for Determinate Nix compatibility
Determinate Nix on depot runners doesn't support nix-env which cachix-action uses. Pre-install cachix with nix profile and use installCommand to skip the action's internal install on Darwin.
1 parent fd2d169 commit bba2308

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,21 @@ jobs:
5252
accept-flake-config = true
5353
extra-substituters = https://devenv.cachix.org https://darkmatter.cachix.org
5454
extra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= darkmatter.cachix.org-1:7R5qAiOVHxDpFy7yguECfC1JqVDgMdckGc+CDKk2pWA=
55+
- name: Pre-install cachix for Determinate Nix (Darwin)
56+
if: matrix.system == 'aarch64-darwin'
57+
run: nix profile install nixpkgs#cachix
5558
- name: Setup Cachix
56-
uses: cachix/cachix-action@v15
59+
uses: cachix/cachix-action@v16
5760
with:
5861
name: darkmatter
5962
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
6063
extraPullNames: devenv
64+
# On Darwin, use pre-installed cachix (via nix profile); on Linux use default install
65+
installCommand: ${{ matrix.system == 'aarch64-darwin' && 'true' || '' }}
6166
- name: Install omnix
6267
run: nix --accept-flake-config profile install github:juspay/omnix
6368
- name: Run om ci
6469
env:
6570
# Skip devenv on Darwin to avoid container outputs that require Linux-only packages (shadow)
6671
SKIP_DEVENV: ${{ matrix.system == 'aarch64-darwin' && 'true' || '' }}
6772
run: om ci run --systems "${{ matrix.system }}" ".#default.${{ matrix.subflake }}" -- --impure
68-

0 commit comments

Comments
 (0)