diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e8f7324..3f1455b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -37,28 +37,28 @@ jobs: - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - name: Build run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - lint-grcov: + lint-clippy: runs-on: ubuntu-latest + needs: build steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --no-fail-fast - 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' - - uses: actions-rs/grcov@v0.8.19 - - uses: actions/upload-artifact@v4 + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install Rust and Clippy + run: | + rustup component add clippy + cargo clippy + + - name: Run tests + run: cargo test + + - name: Build release + run: cargo build --release + + - name: Upload artifact + uses: actions/upload-artifact@v4 with: - name: lint-grcov-report + name: report-lintcov path: ./.github/workflows/artifacts/report-lintcov.txt - retention-days: 7 +