From ed8aad96c33c976790b84a5c4e8851fb988facd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Tue, 24 Sep 2024 08:26:15 +0200 Subject: [PATCH] ci: build example configs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- .github/workflows/build-test.yaml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build-test.yaml diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml new file mode 100644 index 0000000..ada30a7 --- /dev/null +++ b/.github/workflows/build-test.yaml @@ -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 }}