-
Notifications
You must be signed in to change notification settings - Fork 63
47 lines (47 loc) · 1.59 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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