Skip to content

Commit

Permalink
ci: run all flake checks
Browse files Browse the repository at this point in the history
Adds *fake* hydra-like CI tests for the flake checks.

Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk committed Sep 17, 2024
1 parent 24c6cc7 commit 3761dcd
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build.yaml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/checks.yml
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

0 comments on commit 3761dcd

Please sign in to comment.