-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.19 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
---
on:
pull_request:
push:
branches:
- main
name: CI
jobs:
check-flake:
name: Check Nix flake (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
extra-experimental-features = nix-command flakes
accept-flake-config = true
- uses: cachix/cachix-action@v15
with:
name: 9999years
authToken: '${{ secrets.CACHIX_TOKEN }}'
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: nix flake check
run: nix flake check --print-build-logs
- name: nix develop
run: nix develop --print-build-logs --command true
- name: nix build
run: nix build --print-build-logs
- name: nix build (misc)
run: |
nix build --print-build-logs .#cargo
nix build --print-build-logs .#get-crate-version
nix build --print-build-logs .#make-release-commit