From cdb3c7540b6f709a73990c508ed0129210b5bb78 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Wed, 20 May 2026 10:09:05 +0100 Subject: [PATCH] zizmor pedantic warnings --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a3984c..9efcf3a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: name: Test @@ -62,9 +66,15 @@ jobs: with: persist-credentials: false - name: Install Rust (rustup) - run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} + env: + RUST_TOOLCHAIN: ${{ matrix.rust }} + run: rustup update "$RUST_TOOLCHAIN" --no-self-update && rustup default "$RUST_TOOLCHAIN" + shell: bash + - name: Add target + env: + RUST_TARGET: ${{ matrix.target }} + run: rustup target add "$RUST_TARGET" shell: bash - - run: rustup target add ${{ matrix.target }} - run: rustup component add clippy rustfmt - run: cargo fmt -- --check if: matrix.build == 'x86_64'