From 417ea57d58dd8650326b42729e7129f8f7118b86 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Mon, 8 May 2023 11:58:30 +0200 Subject: [PATCH] Remove unnecessary toolchain action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GitHub runners include rustup and a recent stable Rust. We only need to add the necessary target and we’re good to go. This removes a lot of warnings because the action used an outdated GitHub API: https://github.com/actions-rs/toolchain/issues/219 --- .github/workflows/build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 326aef163db2..6d6b9d799ddb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,10 +75,7 @@ jobs: run: sudo apt update && sudo apt install gcc-aarch64-linux-gnu - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} + run: rustup target add ${{ matrix.target }} - name: Build Rust code working-directory: ${{ matrix.directory }}