-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 1 KB
/
cargo.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
on: push
name: Continuous integration
jobs:
ci:
runs-on: macos-latest
strategy:
matrix:
rust:
- stable
- nightly
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Caching
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --workspace --all-targets
- name: Run tests
run: cargo test --workspace --all-targets
- name: Run tests with system lzfse
run: cargo test --workspace --features system-lzfse --all-targets
- name: Run tests with only zlib
run: cargo test --workspace --no-default-features --features zlib --all-targets
- name: Test formatting
run: cargo fmt --all -- --check
- name: Check for clippy warnings
run: cargo clippy --workspace --all-targets -- -D warnings