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
name: CI
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
jobs:
test:
name: Test (${{ matrix.toolchain }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ matrix.toolchain }}-${{ hashFiles('Cargo.toml') }}
- run: cargo fmt --all -- --check
- run: cargo clippy --all-features --all-targets -- -D warnings
- run: cargo test --no-default-features
- run: cargo test --features time
- run: cargo test --features time,fetch
- run: cargo test --all-features
- name: Validate manifests
run: cargo run -p archive-validate -- MANIFEST.toml
- name: Verify publishability
run: cargo publish --dry-run --allow-dirty -p siderust-archive