From ece0c7de2fed984d680a082fc77aca95d682b140 Mon Sep 17 00:00:00 2001 From: Giovanni Bassi Date: Wed, 12 Apr 2023 22:24:37 -0300 Subject: [PATCH] Replace unused actions See: https://github.com/actions-rs/clippy-check/issues/162 And: https://github.com/actions-rs/toolchain/issues/216 --- .github/workflows/build.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ff6e31..265b1c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,11 +68,10 @@ jobs: runner: windows-2019 steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} components: clippy, rustfmt - uses: actions-rs/cargo@v1 name: Check format @@ -81,11 +80,15 @@ jobs: args: --all --check use-cross: ${{ matrix.os == 'linux' }} - name: Check clippy - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features - use-cross: ${{ matrix.os == 'linux' }} + shell: bash + run: | + CARGO=cargo + if [[ "$MATRIX_OS" == linux ]]; then + CARGO=cross + fi + $CARGO clippy --all-features + env: + MATRIX_OS: ${{ matrix.os }} - uses: actions-rs/cargo@v1 name: Build app with: