-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 895 Bytes
/
rust.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
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo test --no-default-features
- run: cargo build --examples --all-features
- run: cargo test --all-features
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rustfmt
- run: cargo clippy --all-targets --all-features
- run: cargo fmt --check
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo run --example read_zstd_archive -- ./tests/sample-bag.tar.zst
- run: cargo run --example blake3_generate -- ${{ runner.temp }}/test_bag