-
Notifications
You must be signed in to change notification settings - Fork 64
41 lines (41 loc) · 1.26 KB
/
build-test.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
34
35
36
37
38
39
40
41
name: "Build Example Configs"
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
linux:
name: Linux ${{ matrix.systems }} ${{ matrix.targets }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
targets: [healthchecks.nix, secrets.nix, simple.nix]
os: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Morph Build ${{ Matrix.targets }}
run: nix run . -- build examples/${{ matrix.targets }}
macos:
name: MacOS ${{ matrix.systems }} ${{ matrix.targets }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
targets: [healthchecks.nix, secrets.nix, simple.nix]
os: [macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Morph Build ${{ Matrix.targets }}
run: nix run . -- build examples/${{ matrix.targets }}