Release v0.17.0 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: "30 3 * * 2" | |
name: CI | |
env: | |
RUST_VERSION: "1.72.1" | |
jobs: | |
test: | |
name: run tests | |
strategy: | |
matrix: | |
rust: [$RUST_VERSION, stable] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Remove toolchain file | |
run: rm rust-toolchain.toml | |
- name: Build with default features | |
run: cargo build --all-targets | |
- name: Build with all features | |
run: cargo build --all-targets --all-features | |
- name: Run tests | |
run: cargo test --all-features | |
fmt: | |
name: run rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: $RUST_VERSION | |
components: rustfmt | |
- name: Remove toolchain file | |
run: rm rust-toolchain.toml | |
- name: Check formatting in all files | |
run: cargo fmt --all -- --check | |
clippy: | |
name: run clippy lints | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- name: Remove toolchain file | |
run: rm rust-toolchain.toml | |
- name: Check if there are clippy warnings | |
run: cargo clippy --all-features -- -D warnings | |
audit: | |
name: run cargo audit | |
runs-on: ubuntu-latest | |
container: dbrgn/cargo-audit:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Remove toolchain file | |
run: rm rust-toolchain.toml | |
- name: Audit all used dependencies | |
run: cargo audit |