-
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.
Merge pull request #223 from DBCDK/actual-ci
ci: run all flake checks, build morph examples
- Loading branch information
Showing
3 changed files
with
90 additions
and
17 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,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 }} |
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
name: "Flake Checks" | ||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
branches: | ||
- "master" | ||
jobs: | ||
linux: | ||
name: Linux ${{ matrix.systems }} ${{ matrix.checks }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
checks: [build, formatting, pre-commit-check, vm_integration_tests] | ||
os: [ubuntu-latest] | ||
systems: ["x86_64-linux"] | ||
# In a better world ; _ ; | ||
# systems: ["x86_64-linux", "aarch64-linux","x86_64-darwin", "aarch64-darwin"] | ||
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: Nix Flake Check | ||
run: nix build ./#checks.${{ matrix.systems }}.${{ matrix.checks }} -L | ||
macos: | ||
name: MacOS ${{ matrix.systems }} ${{ matrix.checks }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
checks: [build, formatting, pre-commit-check] | ||
# TODO: this *should* work, but it doesn't (surely it's Sequoia's fault) | ||
# checks: [build, formatting, pre-commit-check, vm_integration_tests] | ||
os: [macos-latest] | ||
systems: ["aarch64-darwin"] | ||
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: Nix Flake Check | ||
run: nix build ./#checks.${{ matrix.systems }}.${{ matrix.checks }} -L |