-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (53 loc) · 1.56 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
name: test suite
on: [push, pull_request]
jobs:
check_and_test:
name: check and test workspace with ${{matrix.toolchain}}
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- 1.74.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
components: clippy
- uses: arduino/setup-protoc@v3
- run: cargo clippy --tests -- -Dwarnings
- run: cargo test
build:
name: build workspace with ${{matrix.toolchain}}
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- 1.74.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
- uses: arduino/setup-protoc@v3
- run: cargo build --workspace --exclude no-panicking
- run: cargo build -p no-panicking --profile release-lto
miri:
name: miri testing on unsafe code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- uses: arduino/setup-protoc@v3
- run: MIRIFLAGS=-"Zmiri-tree-borrows" cargo +nightly miri test -p micropb -p basic-proto
documentation:
name: document released packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: RUSTDOCFLAGS="-D warnings" cargo doc -p micropb -p micropb-gen