-
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (31 loc) · 876 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
41
name: Check
on:
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
- name: Install nasm
uses: ilammy/setup-nasm@v1
- uses: Swatinem/rust-cache@v2
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@main
- name: Install cargo check tools
run: cargo binstall --no-confirm --force cargo-deny cargo-outdated cargo-udeps cargo-audit
# remove advisory-db is required to fetch it correctly
- name: Check
run: |
cargo deny check
cargo outdated --exit-code 1
cargo udeps
rm -rf ~/.cargo/advisory-db
cargo audit