Discard use of actions-rs/cargo

This commit is contained in:
Dirkjan Ochtman 2024-10-23 10:03:48 +02:00
parent 3a77e2f7ca
commit 3725ce17b9
1 changed files with 7 additions and 29 deletions

View File

@ -24,28 +24,16 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --all-features --all-targets
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features
- run: cargo check --all-features --all-targets
- run: cargo test --all-features
- run: cargo test --no-default-features
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@1.70
- uses: actions-rs/cargo@v1
with:
command: check
args: --lib --all-features
- run: cargo check --lib --all-features
lint:
runs-on: ubuntu-latest
@ -55,21 +43,11 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy, rust-docs
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
if: always()
with:
command: clippy
args: --workspace --all-targets --all-features -- -D warnings
- uses: actions-rs/cargo@v1
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo doc --no-deps --all-features --document-private-items
env:
RUSTDOCFLAGS: "-D warnings"
with:
command: doc
args: --no-deps --all-features --document-private-items
audit:
runs-on: ubuntu-latest