-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (38 loc) · 1.05 KB
/
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
38
39
40
41
name: Nix Related Actions
on:
pull_request:
push:
branches: [main]
jobs:
checks:
name: Nix Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-stable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- 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
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-stable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Run verify commands
run: nix develop --command ${{ matrix.command }}