34 lines
741 B
YAML
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
|
|
|