use an action for installing rust
All checks were successful
Rust Build / build (push) Successful in 1m32s
All checks were successful
Rust Build / build (push) Successful in 1m32s
This commit is contained in:
parent
5e1734a840
commit
e5e24c34af
1 changed files with 7 additions and 11 deletions
|
|
@ -15,17 +15,13 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y curl build-essential
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
|
||||
|
||||
- name: Install rust-src
|
||||
run: rustup toolchain install nightly --component rust-src
|
||||
|
||||
- name: Install RISC-V target
|
||||
run: rustup target add riscv32imc-unknown-none-elf
|
||||
- name: Install Rust toolchain
|
||||
uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: rust-src
|
||||
target: riscv32imc-unknown-none-elf
|
||||
override: true
|
||||
|
||||
- name: Build Release
|
||||
run: cargo build --release
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue