-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (45 loc) · 1.23 KB
/
rust-build-and-test.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
name: Rust
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
test-stable:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run cargo check
run: |
cargo check --verbose;
cargo check --features small-vec --verbose;
- name: Run tests
run: |
cargo test --verbose;
cargo test --features small-vec --verbose;
test-nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nightly Rust Toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- name: Run cargo check
run: |
cargo check --verbose;
cargo check --features small-vec --verbose;
- name: Run tests
run: |
cargo test --verbose;
cargo test --features small-vec --verbose;
- name: Run tests under Miri
run: |
cargo miri test --verbose;
cargo miri test --features small-vec --verbose;