Build Rust project in CI #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build for ESP32-C3 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# - name: Setup Rust | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# override: true | |
- name: Rust setup | |
run: rustup toolchain install stable --profile minimal | |
# - name: Install Espressif Rust environment | |
# run: | | |
# curl -sSL https://raw.githubusercontent.com/espressif/rust-esp/main/install.sh | bash | |
# source $HOME/export-esp.sh | |
- name: Build project | |
run: | | |
cargo build --release | |
- name: Test build output | |
run: | | |
ls -l target/riscv32imc-unknown-none-elf/release/ |