clean up #37
This file contains hidden or 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 for ESP32-S3 | |
on: | |
push: | |
paths: | |
- "spooky-maze-esp32-s3-box-3/**" | |
- "spooky-core/**" | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
rust-checks: | |
name: Rust Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust (Xtensa) | |
uses: esp-rs/[email protected] | |
with: | |
default: true | |
version: '1.85.0' | |
buildtargets: esp32s3 | |
ldproxy: false | |
- name: Enable caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Run checks | |
working-directory: esp32-s3 | |
run: | | |
board="esp32-s3-box-3" | |
# Perform common checks | |
echo "Running common checks" | |
cargo fmt --all -- --check --color always | |
echo "Building for board: $board" | |
cargo clippy --release --features "$board" --workspace -- -D warnings | |
cargo build --release --features "$board" |