Skip to content

Commit

Permalink
Nix build shared matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Aug 31, 2024
1 parent cc592cb commit 2c5411e
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
build-nix:
name: Build Nix (x86_64)
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, aarch64]
needs: test
steps:
- name: Checkout
Expand All @@ -50,34 +53,14 @@ jobs:
with:
name: cofob
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Build derivation
run: |
nix build .#fastside
build-nix-aarch64:
name: Build Nix (aarch64)
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: aarch64
- name: Setup Nix
uses: cachix/install-nix-action@v25
with:
nix_path: "${{ env.nix_path }}"
- name: Setup cachix
uses: cachix/cachix-action@v14
with:
name: cofob
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Build derivation
run: nix --system aarch64-linux build .#fastside
run: |
nix --system ${{ matrix.target }}-linux build .#fastside
build-linux:
name: Build Linux
Expand Down

0 comments on commit 2c5411e

Please sign in to comment.