-
Notifications
You must be signed in to change notification settings - Fork 18
100 lines (97 loc) · 3.1 KB
/
scc.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: SCC
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check-basic-x86_64:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Debug
run: RUST_BACKTRACE=1 cargo test;
RUST_BACKTRACE=1 cargo test -p examples
- name: Release
run: RUST_BACKTRACE=1 cargo test --release;
RUST_BACKTRACE=1 cargo test --release -p examples
check-basic-x86:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Prepare
run: sudo apt-get install gcc-multilib;
rustup target add i686-unknown-linux-gnu
- name: Debug
run: RUST_BACKTRACE=1 cargo test --target i686-unknown-linux-gnu;
RUST_BACKTRACE=1 cargo test --target i686-unknown-linux-gnu -p examples
- name: Release
run: RUST_BACKTRACE=1 cargo test --target i686-unknown-linux-gnu --release;
RUST_BACKTRACE=1 cargo test --target i686-unknown-linux-gnu --release -p examples
check-basic-aarch64:
runs-on: macos-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Debug
run: RUST_BACKTRACE=1 cargo test;
RUST_BACKTRACE=1 cargo test -p examples
- name: Release
run: RUST_BACKTRACE=1 cargo test --release;
RUST_BACKTRACE=1 cargo test --release -p examples
check-extended:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Prepare
run: rustup toolchain add nightly;
rustup component add rust-src --toolchain nightly;
rustup component add miri --toolchain nightly
- name: Miri
run: cargo +nightly miri test
- name: Loom
run: cargo test --features loom --release --lib -- --nocapture
check-misc:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Prepare
run: rustup toolchain add nightly;
rustup component add rust-src --toolchain nightly;
rustup component add clippy --toolchain nightly
- uses: taiki-e/install-action@v2
with:
tool: cargo-msrv, cargo-spellcheck
- name: Clippy
run: cargo clippy --all;
cargo clippy -p examples --all
- name: MSRV
run: cargo msrv verify
- name: Spell-check
run: cargo spellcheck check
- name: Format
run: cargo fmt --check;
cargo fmt -p examples --check
- name: Doc
run: cargo doc --document-private-items
- name: Equivalent
run: cargo test --features equivalent --release --lib -- --nocapture
- name: Serde
run: cargo test serde --features serde;
cargo test --release serde --features serde
- name: Nightly
run: cargo +nightly test --release benchmark;
cargo +nightly test -p examples --release
benchmark:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Benchmark
run: cargo bench