From a7932fff842556e9c23e2df72af178415e9a56a3 Mon Sep 17 00:00:00 2001 From: Ruslan Pislari Date: Tue, 4 Jun 2024 11:02:19 +0300 Subject: [PATCH] fix: replace action-rs gh actions with other --- .github/workflows/ci.yaml | 43 ++++++++++++--------------------------- 1 file changed, 13 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 650f95d..d94298f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,6 +4,7 @@ on: [push] env: CARGO_TERM_COLOR: always + RUSTFLAGS: "-Dwarnings" jobs: build: @@ -16,41 +17,24 @@ jobs: submodules: recursive - name: Setup Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable target: wasm32-wasi components: rustfmt, clippy - - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --release --all-features - - - name: Documentation - uses: actions-rs/cargo@v1 + - name: Run cargo-audit binary crate + uses: rustsec/audit-check@v1.4.1 with: - command: doc + token: ${{ secrets.GITHUB_TOKEN }} - - name: Install cargo-audit binary crate - uses: actions-rs/install@v0.1 - with: - crate: cargo-audit - version: latest - use-tool-cache: true + - name: Build + run: cargo build --release --all-features - - name: Annotate commit with clippy warnings - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + - name: Documentation + run: cargo doc - - name: Security audit - uses: actions-rs/audit-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} + - name: Run Clippy + run: cargo clippy --all-targets --all-features release: runs-on: ubuntu-latest @@ -63,11 +47,10 @@ jobs: submodules: recursive - name: Setup Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable target: wasm32-wasi + components: rustfmt, clippy - name: Run Release PR uses: MarcoIeni/release-plz-action@v0.5