-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 915 Bytes
/
nix.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
name: Nix Related Actions
on:
pull_request:
push:
branches: [main]
jobs:
checks:
name: Nix Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Run Checks
run: nix flake check
verify:
name: Verifications
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command:
- verify-no_std
- verify-doc
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Run verify commands
run: nix develop --command ${{ matrix.command }}