-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (49 loc) · 1.33 KB
/
main.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
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: 'Build'
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout source'
uses: actions/checkout@v4
- name: 'Install Nix Flakes'
uses: cachix/install-nix-action@v25
- name: 'Setup Cachix'
uses: cachix/cachix-action@v14
with:
name: wurzelpfropf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN_PUBLIC }}'
- name: 'Build default package'
run: nix build -L .
check:
name: 'Check'
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout source'
uses: actions/checkout@v4
- name: 'Install Nix Flakes (nixos-test, recursive-nix)'
uses: cachix/install-nix-action@v25
with:
extra_nix_config: |
experimental-features = nix-command flakes recursive-nix
system-features = nixos-test benchmark big-parallel kvm recursive-nix
- name: 'Setup Cachix'
uses: cachix/cachix-action@v14
with:
name: wurzelpfropf
authToken: '${{ secrets.CACHIX_AUTH_TOKEN_PUBLIC }}'
- name: 'Run all checks'
run: nix flake check -L .