-
Notifications
You must be signed in to change notification settings - Fork 12
63 lines (59 loc) · 1.77 KB
/
ci.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: Build and Test
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
nomt_test:
name: NOMT - test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --verbose --workspace --locked
- run: cargo test --verbose --workspace
benchtop_check:
name: NOMT - check benchtop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --verbose --manifest-path=benchtop/Cargo.toml --locked
loom_rw_pass_cell:
name: NOMT - loom rw_pass_cell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: RUSTFLAGS="--cfg loom" cargo test rw_pass_cell --release --workspace
doc:
name: NOMT - doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo doc --verbose --workspace --document-private-items
fmt:
name: NOMT - fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all --check
- run: cargo fmt --manifest-path=benchtop/Cargo.toml --check
darwin_check:
name: NOMT - check darwin target
runs-on: ubuntu-latest
env:
# This is a workaround for the blake3 crate.
CARGO_FEATURE_PURE: 1
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-apple-darwin
# Build only the NOMT crate. Not everything builds cleanly under this configuration.
- run: cargo check --verbose -p nomt --locked --target x86_64-apple-darwin