diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..21dd997 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,51 @@ +# 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: Checkout Ethernet library + uses: actions/checkout@v3 + with: + repository: m5stack/M5-Ethernet + ref: master + path: CustomLibrary_M5-Ethernet # must contain string "Custom" + + - name: Checkout M5GFX library + uses: actions/checkout@v3 + with: + repository: m5stack/M5GFX + ref: master + path: CustomLibrary_M5GFX # must contain string "Custom" + + - name: Checkout M5Unified library + uses: actions/checkout@v3 + with: + repository: m5stack/M5Unified + ref: master + path: CustomLibrary_M5Unified # must contain string "Custom" + + - name: Checkout M5AtomS3 library + uses: actions/checkout@v3 + with: + repository: m5stack/M5AtomS3 + ref: master + path: CustomLibrary_M5AtomS3 # must contain string "Custom" + + - name: Compile sketch + uses: ArminJo/arduino-test-compile@v3 + with: + arduino-board-fqbn: esp32:esp32:m5stack-atomS3 + platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json + required-libraries: ReactESP@2.1.0,M5Atom@0.1.0 + sketch-names: "*.ino" + sketch-names-find-start: bbn_*/* + extra-arduino-cli-args: "--warnings default" + set-build-path: true