-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 952 Bytes
/
CI.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
41
name: CI
on:
- push
jobs:
Format:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Format
run: cargo fmt --check
Lint:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Nix
uses: DeterminateSystems/nix-installer-action@v16
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Lint
run: nix develop --command cargo clippy -- --deny warnings
Build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Nix
uses: DeterminateSystems/nix-installer-action@v16
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix develop --command cargo build