From 9ed13553841c538f48aea75e87ba3db9a3941ee0 Mon Sep 17 00:00:00 2001 From: Forairaaaaa Date: Wed, 29 Oct 2025 12:15:12 +0800 Subject: [PATCH] add build eaxmples action --- .github/workflows/build-examples.yml | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build-examples.yml diff --git a/.github/workflows/build-examples.yml b/.github/workflows/build-examples.yml new file mode 100644 index 0000000..eda1647 --- /dev/null +++ b/.github/workflows/build-examples.yml @@ -0,0 +1,42 @@ +name: Build Examples + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + compile-sketch: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Compile sketches + uses: arduino/compile-sketches@v1 + with: + fqbn: "m5stack:esp32:m5stack_stamplc" + platforms: | + - name: "m5stack:esp32" + source-url: https://static-cdn.m5stack.com/resource/arduino/package_m5stack_index.json + version: "latest" + libraries: | + - name: M5Unified + - name: M5GFX + - source-path: ./ + sketch-paths: | + - examples + cli-version: latest + enable-deltas-report: true + enable-warnings-report: true + + - name: Upload sketches report + uses: actions/upload-artifact@v4 + with: + name: sketches-report + path: sketches-reports