-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (57 loc) · 1.56 KB
/
ci.yaml
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
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v12
# - name: Setup the magic Nix cache
# uses: DeterminateSystems/magic-nix-cache-action@v6
- name: Format
run: |
nix develop --command just fmt
git diff --exit-code
flake-check:
name: Flake Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v8
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
host: [hulk, nuc-1, nuc-2, nuc-3]
runs-on: ${{ matrix.os }}
steps:
- name: Free space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v12
# - name: Setup the magic Nix cache
# uses: DeterminateSystems/magic-nix-cache-action@v6
- name: Build
run: |
# Force the creation of the profile dir
nix profile list
# Build
nix develop --command just build ${{ matrix.host }}