-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (61 loc) · 1.9 KB
/
actions.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: tests
on: [ push, pull_request ]
jobs:
tests_nightly:
name: tests, fmt & clippy @nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt, clippy
- name: doc tests
run: cargo test --doc
- name: tests - no default features
run: cargo test --no-default-features --tests
- name: tests - std
run: cargo test --no-default-features --features std --tests
- name: tests - error_trait
run: cargo test --no-default-features --features error_trait --tests
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all-targets -- --deny warnings
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
tests_1_77:
name: tests, fmt & clippy @ 1.77.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.77.0
components: rustfmt, clippy
- name: doc tests
run: cargo test --doc
- name: tests - no default features
run: cargo test --no-default-features --tests
- name: tests - std
run: cargo test --features std --tests
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all-targets -- --deny warnings
semver-check:
name: semver check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
kani-compile-check:
name: Kani compile check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: model-checking/[email protected]
with:
kani-version: latest
args: --all-features --only-codegen