Skip to content

Commit 5fd4800

Browse files
dmjioclaude
andcommitted
ci: replace cachix/install-nix-action with ners/simply-nix
Switches both the build and docs jobs to ners/simply-nix@main with reclaim_space: true, which bundles Nix installation and magic-nix-cache into a single step and frees runner disk space before building. Drops the now-unused ACTIONS_ALLOW_UNSECURE_COMMANDS env var. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 451bfac commit 5fd4800

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
- master
66
pull_request:
77

8-
env:
9-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
10-
118
jobs:
129
build:
1310
strategy:
@@ -17,19 +14,15 @@ jobs:
1714
steps:
1815
- uses: actions/checkout@v4
1916

20-
# macos-latest is Apple Silicon, but ArrayFire only ships an x86_64 macOS
21-
# binary, so the flake's darwin output is x86_64-darwin. Build it under
22-
# Rosetta 2: ensure Rosetta is present and let Nix build x86_64-darwin
23-
# derivations via `extra-platforms` below.
17+
# macos-latest is Apple Silicon; ArrayFire only ships x86_64-darwin, so
18+
# we build under Rosetta 2 targeting .#packages.x86_64-darwin.default.
2419
- name: Install Rosetta 2
2520
if: runner.os == 'macOS'
2621
run: softwareupdate --install-rosetta --agree-to-license
2722

28-
- uses: cachix/install-nix-action@v31
23+
- uses: ners/simply-nix@main
2924
with:
30-
nix_path: nixpkgs=channel:nixpkgs-unstable
31-
extra_nix_config: |
32-
extra-platforms = x86_64-darwin
25+
reclaim_space: true
3326

3427
- name: Build and run tests (Linux)
3528
if: runner.os == 'Linux'
@@ -48,9 +41,9 @@ jobs:
4841
steps:
4942
- uses: actions/checkout@v4
5043

51-
- uses: cachix/install-nix-action@v31
44+
- uses: ners/simply-nix@main
5245
with:
53-
nix_path: nixpkgs=channel:nixpkgs-unstable
46+
reclaim_space: true
5447

5548
- name: Build (produces Haddock docs via cabal)
5649
run: nix build -L

0 commit comments

Comments
 (0)