-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (42 loc) · 1.41 KB
/
linux.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
name: Linux
on:
push:
branches:
- main
pull_request:
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.74
override: true
- name: Cache dependencies
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab
- name: Compile (all features)
run: cargo build --all-features --all-targets --workspace
# Don't test benches.
- name: Run Rust tests (all features)
timeout-minutes: 30
run: cargo test --all-features --examples --tests --workspace
# Note that `--doc` can't be combined with other tests.
- name: Run Rust doc-tests (all features)
timeout-minutes: 30
run: cargo test --all-features --doc --workspace
- name: Compile (no features)
run: cargo build --no-default-features --all-targets --workspace
# Don't test benches.
- name: Run Rust tests (no features)
timeout-minutes: 30
run: cargo test --no-default-features --examples --tests --workspace
# Note that `--doc` can't be combined with other tests.
- name: Run Rust doc-tests (no features)
timeout-minutes: 30
run: cargo test --no-default-features --doc --workspace