Skip to content

Commit

Permalink
chore(build.yml): don't install nix on self hosted macos
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Jan 16, 2023
1 parent a2a78e6 commit 12404eb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ jobs:
fail-fast: false
matrix:
platform:
- arch: macos-11-x86_64
runs-on: [macos-11]
- arch: macos-12-x86_64
runs-on: [macos-12]
- arch: macos-x86_64
runs-on: [macos-latest]
- arch: macos-arm64
runs-on: [self-hosted, macOS, ARM64]
- arch: linux-x86_64
Expand All @@ -25,21 +23,26 @@ jobs:
- name: "Displays Xcode current version"
run: |
sudo xcode-select -p || :
- name: Checkout code
uses: actions/checkout@v3
with:
lfs: false

- name: Install nix
uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
experimental-features = flakes nix-command
if: "${{ matrix.platform.arch != 'macos-arm64' }}"

- name: Setup cachix
uses: cachix/cachix-action@v12
if: "${{ matrix.cachixName != '<YOUR_CACHIX_NAME>' }}"
with:
name: "${{ matrix.cachixName }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Build derivations
env:
nix_attribute: "${{ matrix.nixAttribute }}"
Expand Down

0 comments on commit 12404eb

Please sign in to comment.