Skip to content

Commit

Permalink
add macos-arm self-hosted runner to ci (#91)
Browse files Browse the repository at this point in the history
closes #87
  • Loading branch information
JoshuaBatty authored Jul 31, 2023
1 parent f0fe34d commit 5f7383d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ jobs:
fail-fast: false
matrix:
package: [fuel, fuel-beta-1, fuel-beta-2, fuel-beta-3, fuel-beta-4-rc, fuel-nightly, sway-vim]
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, macos-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v22
- if: matrix.os != 'macos-arm'
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
- if: matrix.os != 'macos-arm'
uses: cachix/cachix-action@v12
with:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
Expand All @@ -46,14 +48,16 @@ jobs:
needs: nix-build
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, macos-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v22
- if: matrix.os != 'macos-arm'
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
- if: matrix.os != 'macos-arm'
uses: cachix/cachix-action@v12
with:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/refresh-manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
fail-fast: false
matrix:
package: [fuel, fuel-beta-1, fuel-beta-2, fuel-beta-3, fuel-beta-4-rc, fuel-nightly]
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, macos-arm]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -48,10 +48,12 @@ jobs:
path: manifests/
- name: stage manifests for nix build
run: git add -v manifests
- uses: cachix/install-nix-action@v22
- if: matrix.os != 'macos-arm'
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
- if: matrix.os != 'macos-arm'
uses: cachix/cachix-action@v12
with:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
Expand Down

0 comments on commit 5f7383d

Please sign in to comment.