Skip to content

Commit

Permalink
Build Rust project in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
snasirca committed Oct 27, 2024
1 parent a16f9f9 commit 90a718c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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: 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/

0 comments on commit 90a718c

Please sign in to comment.