From 6e833314d2d434c2885567f3a2a3d0f4223f8416 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 21 Aug 2024 03:27:26 +0200 Subject: [PATCH 1/2] fix: changed from actions-rs to a more maintained CI alternative --- .github/workflows/ci.yml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 982897c..a92145e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,18 +46,12 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 with: - profile: minimal toolchain: stable components: clippy - override: true - name: Clippy check - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + run: cargo +nightly clippy --all-features fmt: name: Rustfmt check @@ -65,18 +59,11 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 with: - profile: minimal toolchain: stable components: rustfmt - override: true - - name: Rustfmt check - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: cargo +nightly fmt --all -- --check prlint: name: PR name check From 9748f36c6a4fdc7273d37c86f000e45b41ee4f1b Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 21 Aug 2024 03:38:17 +0200 Subject: [PATCH 2/2] fix: removed unnsessesary nightly in cargo clippy --all-features --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a92145e..01cec92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: toolchain: stable components: clippy - name: Clippy check - run: cargo +nightly clippy --all-features + run: cargo clippy --all-features fmt: name: Rustfmt check @@ -61,7 +61,7 @@ jobs: uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1.9.0 with: - toolchain: stable + toolchain: nightly components: rustfmt - run: cargo +nightly fmt --all -- --check