-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (37 loc) · 1.12 KB
/
ci.yaml
File metadata and controls
38 lines (37 loc) · 1.12 KB
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
name: test suite
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: cargo build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
- run: sudo apt-get update
- run: sudo apt-get install -y pkg-config libudev-dev
- run: cargo build --workspace
- run: cargo build --package attest-data --package dice-mfg-msgs
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
- run: sudo apt-get update
- run: sudo apt-get install -y pkg-config libudev-dev
- run: cargo test --package attest-data
- run: cargo test --package dice-mfg-msgs
- run: cargo test --all-features --locked
doc:
name: cargo doc
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
- run: sudo apt-get update
- run: sudo apt-get install -y pkg-config libudev-dev
- run: cargo doc --all-features --locked --no-deps