-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 870 Bytes
/
check.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
name: Check with Nix
on:
push:
branches:
- 'main'
paths:
- "**.rs"
- "**.toml"
- "**.nix"
- ".github/workflows/*"
- "flake.lock"
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
check:
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/flake-checker-action@v4
- uses: DeterminateSystems/nix-installer-action@v3
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@9ab3ce70d6d64cd6e4f4506ccb757152453ccaa6
- name: nix flake check
run: nix flake check --all-systems