From 8d0fc68fbd6085a3ed7542252a90e8aaeaf0e4f7 Mon Sep 17 00:00:00 2001 From: LinkTed Date: Thu, 26 Dec 2024 17:28:23 +0000 Subject: [PATCH 1/6] ci: Update actions/checkout to 4 --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 081600e..7616c92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: with: toolchain: stable components: rustfmt - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run rustfmt run: cargo fmt --all -- --check @@ -43,7 +43,7 @@ jobs: with: toolchain: stable components: clippy - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run clippy uses: actions-rs/clippy-check@v1 with: @@ -63,7 +63,7 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.rust_channel }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run cargo test uses: actions-rs/cargo@v1 with: @@ -80,7 +80,7 @@ jobs: with: toolchain: nightly override: true - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Run cargo test uses: actions-rs/cargo@v1 with: From efa4b05ebe7d52ed3eff6b2af7c2f5530aa217af Mon Sep 17 00:00:00 2001 From: LinkTed Date: Thu, 26 Dec 2024 17:30:37 +0000 Subject: [PATCH 2/6] ci: Replace actions-rs with dtolnay The actions-rs/toolchain is not maintained. --- .github/workflows/ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7616c92..7497a3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Install toolchain with rustfmt - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable components: rustfmt - uses: actions/checkout@v4 - name: Run rustfmt @@ -39,9 +38,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Install toolchain with clippy - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable components: clippy - uses: actions/checkout@v4 - name: Run clippy @@ -60,7 +58,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Install toolchain ${{ matrix.rust_channel }} on ${{ matrix.os }} - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust_channel }} - uses: actions/checkout@v4 @@ -76,10 +74,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Intall toolchain nightly on ubuntu-latest - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true + uses: dtolnay/rust-toolchain@nightly - uses: actions/checkout@v4 - name: Run cargo test uses: actions-rs/cargo@v1 From 930885424bd55a9a7f25cfea6cc97d5e71b66fcb Mon Sep 17 00:00:00 2001 From: LinkTed Date: Thu, 26 Dec 2024 17:31:08 +0000 Subject: [PATCH 3/6] ci: Remove Job audit --- .github/workflows/ci.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7497a3d..fa29361 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,16 +22,6 @@ jobs: - name: Run rustfmt run: cargo fmt --all -- --check - audit: - name: Job audit - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Run audit - uses: actions-rs/audit-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - clippy: name: Job clippy needs: rustfmt From 591861606927efa20254bbedb2a3dd689ca8fa99 Mon Sep 17 00:00:00 2001 From: LinkTed Date: Thu, 26 Dec 2024 17:35:03 +0000 Subject: [PATCH 4/6] ci: Replace actions-rs with giraffate The actions-rs/clippy-check is not maintained. --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa29361..b36450b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,10 +33,11 @@ jobs: components: clippy - uses: actions/checkout@v4 - name: Run clippy - uses: actions-rs/clippy-check@v1 + uses: giraffate/clippy-action@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - args: -- --deny warnings -A clippy::unknown-clippy-lints + reporter: 'github-pr-check' + github_token: ${{ secrets.GITHUB_TOKEN }} + clippy_flags: --deny warnings -A clippy::unknown-clippy-lints tests: name: Job tests From 1c6a9228f5961476c2f0b3350728c6d106fff451 Mon Sep 17 00:00:00 2001 From: LinkTed Date: Thu, 26 Dec 2024 17:38:18 +0000 Subject: [PATCH 5/6] ci: Update Job code coverage --- .github/workflows/ci.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b36450b..32f0128 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,20 +65,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Intall toolchain nightly on ubuntu-latest - uses: dtolnay/rust-toolchain@nightly - - uses: actions/checkout@v4 - - name: Run cargo test - uses: actions-rs/cargo@v1 + uses: dtolnay/rust-toolchain@stable with: - command: test - args: --all-features - env: - CARGO_INCREMENTAL: '0' - RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' - RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' - - name: Run grcov - uses: actions-rs/grcov@v0.1 - - name: Upload coverage - uses: codecov/codecov-action@v1 + components: llvm-tools-preview + - uses: actions/checkout@v4 + - name: cargo install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: cargo llvm-cov + run: cargo llvm-cov --all-features --lcov --output-path lcov.info + - name: Upload to codecov.io + uses: codecov/codecov-action@v4 with: - file: ${{ steps.coverage.outputs.report }} + token: ${{ secrets.CODECOV_TOKEN }} + env_vars: OS,RUST From fb04f3430d45c91c9d3ad2c9373fdf369e59f8e0 Mon Sep 17 00:00:00 2001 From: LinkTed Date: Thu, 26 Dec 2024 17:39:10 +0000 Subject: [PATCH 6/6] ci: Replace actions-rs with run The actions-rs/cargo is not maintained. --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32f0128..e879201 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,10 +54,7 @@ jobs: toolchain: ${{ matrix.rust_channel }} - uses: actions/checkout@v4 - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features + run: cargo test --no-default-features --features "${{ matrix.features }}" code-coverage: name: Job code coverage