-
-
Notifications
You must be signed in to change notification settings - Fork 52
62 lines (53 loc) · 1.25 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches:
- 'develop'
- 'releases/*'
pull_request:
branches:
- 'develop'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v18
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Caching cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-nix-rustc-v1-1.55.0-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-nix-rustc-v1-1.55.0-
- run: nix develop -c bash scripts/build.sh -ad
- run: nix develop -c cargo test
cargo-deny:
runs-on: ubuntu-20.04
strategy:
matrix:
checks:
- bans licenses sources
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Check Rustfmt
run: cargo fmt -- --check
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: crate-ci/typos@master