-
Notifications
You must be signed in to change notification settings - Fork 22
33 lines (30 loc) · 877 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "CI"
on:
push:
branches:
- master
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: ${{ fromJson(needs.configure.outputs.matrix) }}
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: |
# My self hosted runner is ARM
sd \
'nixpkgs.hostPlatform = "x86_64-linux"' \
'nixpkgs.hostPlatform = "aarch64-linux"' \
./examples/*/flake.nix
nixci build --systems "github:nix-systems/${{ matrix.system }}" .#default.${{ matrix.subflake}}