Skip to content

Commit

Permalink
ci: Use github actions matrix (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored Mar 25, 2024
1 parent eddfe96 commit 7b19503
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ on:
pull_request:

jobs:
configure:
runs-on: self-hosted
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: echo "matrix=$(nixci gh-matrix --systems=aarch64-linux,aarch64-darwin | jq -c .)" >> $GITHUB_OUTPUT
nix:
runs-on: self-hosted
needs: configure
strategy:
matrix:
system: [aarch64-linux, aarch64-darwin]
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: |
Expand All @@ -20,5 +29,5 @@ jobs:
'nixpkgs.hostPlatform = "x86_64-linux"' \
'nixpkgs.hostPlatform = "aarch64-linux"' \
./examples/*/flake.nix
nixci --build-systems "github:nix-systems/${{ matrix.system }}"
nixci build --systems "github:nix-systems/${{ matrix.system }}" .#default.${{ matrix.subflake}}

0 comments on commit 7b19503

Please sign in to comment.