Skip to content

Commit

Permalink
ci: ESP32-S3, ESP32-C6 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik committed Dec 20, 2024
1 parent a363fed commit 6c2e7cf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/build-esp32-c6-rust.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Continuous Integration for ESP32-C6
name: CI for ESP32-C6

on:
push:
paths:
- "../../esp32-c6/**"
- "esp32-c3/**"
- "spooky-core/**"
- "spooky-embedded/**"
workflow_dispatch:
Expand All @@ -16,10 +16,6 @@ jobs:
rust-checks:
name: Rust Checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: [ "esp32-c6-devkit" ]

steps:
- name: Checkout repository
Expand All @@ -36,14 +32,19 @@ jobs:
- name: Enable caching
uses: Swatinem/rust-cache@v2

- name: Run checks sequentially within each job
- name: Run checks sequentially for all boards
working-directory: esp32-c6
run: |
cd ${{ matrix.project }}
# Format check
# Define the list of boards to build
boards=("esp32-c6-devkitc-1" "waveshare-esp32-c6-lcd-1-47")
# Perform common checks
echo "Running common checks"
cargo fmt --all -- --check --color always
# Clippy linting (with release mode if desired)
cargo clippy --release --all-features --workspace -- -D warnings
# Build (Release)
cargo build --release
# Iterate through each board and build
for board in "${boards[@]}"; do
echo "Building for board: $board"
cargo build --release --features "$board"
done
3 changes: 2 additions & 1 deletion .github/workflows/build-esp32-s3-rust.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration for ESP32-S3
name: CI for ESP32-S3

on:
push:
Expand Down Expand Up @@ -33,6 +33,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Run checks sequentially for all boards
working-directory: esp32-s3
run: |
# Define the list of boards to build
boards=("esp32-s3-box" "esp32-s3-box-3" "esp32-s3-usb-otg" "m5stack-cores3")
Expand Down

0 comments on commit 6c2e7cf

Please sign in to comment.