From b37a0db53862a8131f3397f34bbf75a7e4d61839 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sun, 19 Nov 2023 22:45:51 -0500 Subject: [PATCH] Move where the RISC-V toolchain is installed during the no-std workflow --- .github/actions/build-dependencies/action.yml | 2 +- .github/workflows/no-std.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/build-dependencies/action.yml b/.github/actions/build-dependencies/action.yml index 1e5729f2..197460b8 100644 --- a/.github/actions/build-dependencies/action.yml +++ b/.github/actions/build-dependencies/action.yml @@ -52,7 +52,7 @@ runs: with: toolchain: ${{ inputs.rust-toolchain }} components: ${{ inputs.rust-components }} - targets: wasm32-unknown-unknown, riscv32imac-unknown-none-elf + targets: wasm32-unknown-unknown # - name: Cache Rust # uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 diff --git a/.github/workflows/no-std.yml b/.github/workflows/no-std.yml index b9a145cd..a92047a7 100644 --- a/.github/workflows/no-std.yml +++ b/.github/workflows/no-std.yml @@ -31,7 +31,7 @@ jobs: github-token: ${{ inputs.github-token }} - name: Install RISC-V Toolchain - run: sudo apt update && sudo apt install -y gcc-riscv64-unknown-elf gcc-multilib + run: sudo apt update && sudo apt install -y gcc-riscv64-unknown-elf gcc-multilib && rustup target add riscv32imac-unknown-none-elf - name: Verify no-std builds run: cd tests/no-std && CFLAGS=-I/usr/include cargo build --target riscv32imac-unknown-none-elf