This commit is contained in:
parent
c2d5febcda
commit
62f39e5025
2 changed files with 38 additions and 1 deletions
37
.forgejo/workflows/rust_build.yml
Normal file
37
.forgejo/workflows/rust_build.yml
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: Rust Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- 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: Build Release
|
||||||
|
run: cargo build --release
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: esp-hal-snippets
|
||||||
|
path: target/riscv32imc-unknown-none-elf/release/esp-hal-snippets
|
||||||
|
|
||||||
|
|
||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -625,7 +625,7 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "esp_hal_probe"
|
name = "esp_hal_snippets"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"defmt",
|
"defmt",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue