From 681139f95f98dfb0b4ef6fed130570852623021b Mon Sep 17 00:00:00 2001 From: Constantin Nickel Date: Mon, 6 Mar 2023 07:52:51 +0100 Subject: [PATCH] Replace unmaintained/outdated GitHub Actions The `actions-rs/*` actions are replaced with `dtolnay/rust-toolchain` and plain cargo commands. --- .github/workflows/ci.yml | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12e07b8..ada2529 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,29 +11,14 @@ jobs: - stable steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - override: true components: rustfmt, clippy - - uses: actions-rs/cargo@v1 - with: - command: build - - - uses: actions-rs/cargo@v1 - with: - command: test - - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - run: cargo build + - run: cargo test + - run: cargo fmt --check --all + - run: cargo clippy -- -D warnings