Skip to content

Add a workflow that compiles every example - #10

Merged
Forairaaaaa merged 1 commit into
m5stack:mainfrom
ainyan03:arduino_build_check
Aug 28, 2026
Merged

Add a workflow that compiles every example#10
Forairaaaaa merged 1 commit into
m5stack:mainfrom
ainyan03:arduino_build_check

Conversation

@ainyan03

Copy link
Copy Markdown
Contributor

Adds a workflow that compiles every sketch under examples/ with arduino-cli, so that a build break like #12 (the library stopped compiling against a new M5Unified release) is caught by CI instead of by users.

What it does

  • ubuntu-latest, arduino-cli 1.1.1, latest arduino-esp32 (3.3.11) from the Espressif board index, esp32:esp32:esp32s3 (the StackChan core is an ESP32-S3).
  • Two jobs (fail-fast: false):
    • release — M5Unified / M5GFX from the Library Manager, i.e. what a user gets today.
    • develop — M5Unified / M5GFX cloned from their develop branches, so an interface change in those libraries shows up here before it is released.
  • The other dependencies (IRremoteESP8266, M5Unit-NFC and what it pulls in) come from the Library Manager.
  • All 10 examples are compiled in one job; a failure does not stop the remaining sketches, the job fails at the end if any of them failed. Each sketch is a collapsible group in the log.

Runs on push (source / library.properties / the workflow itself), on pull requests, and manually.

Verification

Run on my fork against the current main: both jobs green, 10/10 sketches each (about 25 minutes per job, the two run in parallel).

Compile all sketches under examples/ for ESP32-S3 with the latest
arduino-esp32, once against the libraries from the Library Manager and once
against the development branches of M5Unified / M5GFX, so that an interface
change in those libraries is caught before it is released
(m5stack/M5Unified#346 was only found after the release).
@Forairaaaaa

Copy link
Copy Markdown
Contributor

Thanks!

@Forairaaaaa
Forairaaaaa merged commit 8d4d6fc into m5stack:main Aug 28, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants