-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christina Sørensen <[email protected]>
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 }} |