-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (39 loc) · 1.22 KB
/
ci.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
48
49
50
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-20.04
#- ubuntu-22.04
# We can test on a Matrix of Ubuntu versions
# But Nix does get us pretty good reproducibility
# So we will test just one in CI.
# More full tests can be run by docker_os_matrix.py
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Test existence of secrets
run: |
echo -e 'CACHIX_AUTH_TOKEN length: '
echo ${{ secrets.CACHIX_AUTH_TOKEN }} | wc -c
- uses: cachix/cachix-action@v15
with:
name: charmonium
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix flake check --all-systems --print-build-logs
- run: nix build --print-build-logs .#probe-bundled
# The devshell uses slightly different build process than the Nix pkg
# Might as well test that too
- run: nix develop --command just compile fix check test-native