use an action for installing rust
All checks were successful
Rust Build / build (push) Successful in 1m32s

This commit is contained in:
okhsunrog 2024-11-29 17:27:59 +03:00
parent 5e1734a840
commit e5e24c34af

View file

@ -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