esp_hal_snippets/.forgejo/workflows/rust_build.yml
okhsunrog e8ef3fd5e9
Some checks failed
Rust Build / build (push) Has been cancelled
fix upload
2024-11-29 20:03:18 +03:00

34 lines
741 B
YAML

name: Rust Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- uses: actions/checkout@v3
- 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
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: esp_hal_snippets
path: target/riscv32imc-unknown-none-elf/release/esp_hal_snippets