Skip to content

Commit

Permalink
ci: build example configs
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk committed Sep 24, 2024
1 parent cd22913 commit 6acba0f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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 }}

# Doesn't work :(
# 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 }}

0 comments on commit 6acba0f

Please sign in to comment.