-
Notifications
You must be signed in to change notification settings - Fork 63
30 lines (30 loc) · 967 Bytes
/
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
name: "Flake Checks"
on:
push:
branches:
- "*"
pull_request:
branches:
- "master"
jobs:
nix_flake_check:
name: Nix ${{ matrix.systems }} ${{ matrix.checks }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
checks: [build, formatting", pre-commit-check, vm_integration_tests]
os: [ubuntu-latest, macos-latest]
systems: ["x86_64-linux", "aarch64-linux","x86_64-darwin", "aarch64-darwin"]
include:
- os: ubuntu-latest
systems: ["x86_64-linux", "aarch64-linux"]
- os: macos-latest
systems: ["x86_64-darwin", "aarch64-darwin"]
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Nix Flake Check
run: nix build ./#checks.${{ matrix.systems }}.${{ matrix.checks }} -L