From 15330714260612c7e3693a23eab7cad923314863 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sun, 8 Jan 2023 17:39:32 +0100 Subject: [PATCH 1/2] Move to checkout v3 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3f5d69..1957027 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - stable - beta steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: @@ -52,7 +52,7 @@ jobs: name: MSRV runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: @@ -69,7 +69,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: From d2990202bdd18f7f0f8967ae45d1804779865daa Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sun, 8 Jan 2023 17:44:57 +0100 Subject: [PATCH 2/2] Move away from deprecated actions-rs --- .github/workflows/ci.yml | 44 ++++++++-------------------------------- 1 file changed, 9 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1957027..a20d1bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,32 +19,15 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - override: true components: rustfmt, clippy - - uses: actions-rs/cargo@v1 - with: - command: build - # --all-targets ensures that we also build tests - args: --all-features --all-targets - - - 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: --all-targets -- -D warnings + - run: cargo build --all-targets + - run: cargo test + - run: cargo fmt --all -- --check + - run: cargo clippy --all-targets -- -D warnings # Reduced build for the Minimum Supported Rust Version. It does not include the lints as some of # them are out-of-date and result in false positives on the codebase, e.g. mutex_atomic. @@ -54,15 +37,11 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: "1.51" - override: true - - uses: actions-rs/cargo@v1 - with: - command: test + - run: cargo test miri: name: Miri @@ -71,14 +50,9 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: nightly - override: true components: miri, rust-src - - uses: actions-rs/cargo@v1 - with: - command: miri - args: test + - run: cargo miri test