diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8b13789..96d8f62 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1 +1,24 @@ +# see: https://github.com/marketplace/actions/test-compile-for-arduino +name: build +on: [push, pull_request] +jobs: + build: + name: build for MCU + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Compile sketch + uses: ArminJo/arduino-test-compile@v3 + with: + arduino-board-fqbn: esp32:esp32:m5stack-atoms3:CDCOnBoot=cdc + arduino-platform: esp32:esp32@2.0.15 + platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json + required-libraries: M5AtomS3@1.0.0,M5Unified@0.1.14 + sketch-names: "*.ino" + sketch-names-find-start: bbn_*/* + extra-arduino-cli-args: "--warnings default" + set-build-path: true