From 3725ce17b94cd80d9da7b134da920a4585d2cf0c Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 23 Oct 2024 10:03:48 +0200 Subject: [PATCH] Discard use of actions-rs/cargo --- .github/workflows/rust.yml | 36 +++++++----------------------------- 1 file changed, 7 insertions(+), 29 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1f1c829..dc52f23 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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