Skip to content

Commit 1937629

Browse files
committed
Build configurations in CI using matrix strategy
1 parent 60e92a1 commit 1937629

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@ on:
55
branches: main
66

77
jobs:
8-
tests:
9-
runs-on: ubuntu-latest
8+
build:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
config:
13+
- host: glyph
14+
system: x86_64-linux
15+
runner: ubuntu-latest
16+
- host: Rhizome
17+
system: aarch64-darwin
18+
runner: macos-latest
19+
runs-on: ${{ matrix.runner }}
1020
steps:
1121
- uses: actions/checkout@v4
1222
- uses: cachix/install-nix-action@v31
@@ -17,3 +27,8 @@ jobs:
1727
name: stackptr
1828
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
1929
- run: nix flake check
30+
- name: Build NixOS system
31+
run: |
32+
nix build \
33+
.#nixosConfigurations.${{ matrix.config.host }}.config.system.build.toplevel \
34+
--system ${{ matrix.config.system }}

0 commit comments

Comments
 (0)