From ddf1cc39bacc174deb703d7fbd9dcf3255283f2e Mon Sep 17 00:00:00 2001 From: Ralph Ursprung Date: Mon, 27 Jan 2025 16:18:16 +0100 Subject: [PATCH] CI: install `cargo-audit` GitHub recently changed the runners default image from Ubuntu 22.04 to 24.04 and in the process also changed the list of installed software. it seems, that `cargo-audit` is no longer installed by default. thus we now have to explicitly install it. --- .github/workflows/CI.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e38c585..4d82070 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,6 +23,8 @@ jobs: with: toolchain: ${{ matrix.rust }} components: rustfmt + - name: Install required cargo components + run: cargo install --locked cargo-audit - name: build run: cargo build ${{ matrix.features }} - name: check @@ -44,7 +46,7 @@ jobs: targets: thumbv7em-none-eabihf components: rustfmt clippy - name: Install required cargo components - run: cargo install clippy-sarif sarif-fmt flip-link + run: cargo install --locked cargo-audit clippy-sarif sarif-fmt flip-link - name: build run: cargo build working-directory: examples/stm32f4-single-motor-example