From 8c170cab3ca8ac7f167a26428dfa91bea4caf7d5 Mon Sep 17 00:00:00 2001 From: Richard Zak Date: Sun, 3 Mar 2024 13:31:59 -0500 Subject: [PATCH] ci: don't use the unmaintained `actions-rs` actions Signed-off-by: Richard Zak --- .github/workflows/lint.yml | 28 ++++++++-------------------- .github/workflows/test.yml | 12 ++++-------- 2 files changed, 12 insertions(+), 28 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cef5e38..ccd9331 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,29 +6,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - components: rustfmt - toolchain: nightly - profile: minimal - override: true - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - name: Setup Rust toolchain + run: rustup show && rustup update && rustup component add rustfmt + - name: cargo fmt + run: cargo fmt --all -- --check clippy: name: cargo clippy runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - components: clippy - toolchain: nightly - profile: minimal - override: true - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - name: Setup Rust toolchain + run: rustup show && rustup update && rustup component add clippy + - name: cargo clippy + run: cargo clippy --all-features --tests -- -D warnings diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a19f6db..0bf8af8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,14 +6,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.toolchain }} - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: ${{ matrix.profile.flag }} + - name: Install Rust + run: rustup toolchain install ${{ matrix.toolchain }} + - name: cargo test + run: cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }} strategy: fail-fast: false matrix: