Skip to content

Commit

Permalink
workaround for Nix on ARM MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Apr 24, 2024
1 parent b4b1dfe commit b68b082
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,13 @@ jobs:
mix local.hex --force
if: ${{ runner.os == 'macOS' }} # setup-beam does not support macOS

- name: Install Nix
- name: Install Nix (not ARM MacOS)
uses: nixbuild/nix-quick-install-action@v27
if: ${{ matrix.supports-nix }}
if: ${{ matrix.supports-nix && matrix.target != 'aarch64-apple-darwin' }}

- name: Install Nix (ARM MacOS)
uses: cachix/install-nix-action@v25
if: ${{ matrix.supports-nix && matrix.target == 'aarch64-apple-darwin' }}

- name: Handle Rust dependencies caching
uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit b68b082

Please sign in to comment.