Add ESP-IDF component manifest #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build(arduino-esp32:2.x) | |
| env: | |
| SKETCH_NAMES_FIND_START: ./examples/UnitUnified | |
| REQUIRED_LIBRARIES: M5Unified,M5UnitUnified,M5Unit-NFC | |
| on: | |
| push: | |
| tags-ignore: | |
| - '*.*.*' | |
| - 'v*.*.*' | |
| branches: | |
| - '*' | |
| paths: | |
| - 'src/**.cpp' | |
| - 'src/**.hpp' | |
| - 'src/**.h' | |
| - 'src/**.c' | |
| - 'examples/UnitUnified/**.ino' | |
| - 'examples/UnitUnified/**.cpp' | |
| - 'examples/UnitUnified/**.hpp' | |
| - 'examples/UnitUnified/**.h' | |
| - 'examples/UnitUnified/**.c' | |
| - '.github/workflows/arduino-esp-v2-build-check.yml' | |
| pull_request: | |
| paths: | |
| - 'src/**.cpp' | |
| - 'src/**.hpp' | |
| - 'src/**.h' | |
| - 'src/**.c' | |
| - 'examples/UnitUnified/**.ino' | |
| - 'examples/UnitUnified/**.cpp' | |
| - 'examples/UnitUnified/**.hpp' | |
| - 'examples/UnitUnified/**.h' | |
| - 'examples/UnitUnified/**.c' | |
| - '.github/workflows/arduino-esp-v2-build-check.yml' | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| shell: bash | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: ${{ matrix.nfctype }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 12 | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 20 | |
| matrix: | |
| platform-url: | |
| - https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
| nfctype: | |
| - NFCA | |
| - NFCB | |
| sketch: | |
| - Detect | |
| build-properties: | |
| - "-DUSING_UNIT_RFID2" | |
| # Build CI board axis = distinct compile config only (skill m5-build-ci-matrix). | |
| # esp32:esp32 2.0.x covers only ESP32 / ESP32-S3 (no C6/H2/P4). | |
| board: | |
| - m5stack-core-esp32 # espressif32 x ESP32 (xtensa-esp32) | |
| - m5stack-cores3 # espressif32 x ESP32-S3 (separate GCC target) | |
| # - m5stack-atom # ESP32: represented by m5stack-core-esp32 | |
| # - m5stack-atoms3 # ESP32-S3: represented by m5stack-cores3 | |
| # - m5stack-core2 # ESP32: represented by m5stack-core-esp32 | |
| # - m5stack-coreink # ESP32: represented by m5stack-core-esp32 | |
| # - m5stack-fire # ESP32: represented by m5stack-core-esp32 | |
| platform-version: | |
| - 2.0.17 | |
| platform: | |
| - esp32 | |
| archi: | |
| - esp32 | |
| include: | |
| # Specific sketches (NFCA, USING_UNIT_RFID2, Core only) | |
| - sketch: Dump | |
| nfctype: NFCA | |
| platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
| platform: esp32 | |
| archi: esp32 | |
| platform-version: 2.0.17 | |
| board: m5stack-core-esp32 | |
| build-properties: "-DUSING_UNIT_RFID2" | |
| - sketch: ValueBlock | |
| nfctype: NFCA | |
| platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
| platform: esp32 | |
| archi: esp32 | |
| platform-version: 2.0.17 | |
| board: m5stack-core-esp32 | |
| build-properties: "-DUSING_UNIT_RFID2" | |
| - sketch: ReadWrite | |
| nfctype: NFCA | |
| platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
| platform: esp32 | |
| archi: esp32 | |
| platform-version: 2.0.17 | |
| board: m5stack-core-esp32 | |
| build-properties: "-DUSING_UNIT_RFID2" | |
| - sketch: NDEF | |
| nfctype: NFCA | |
| platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
| platform: esp32 | |
| archi: esp32 | |
| platform-version: 2.0.17 | |
| board: m5stack-core-esp32 | |
| build-properties: "-DUSING_UNIT_RFID2" | |
| # JapanIDCard (NFCB, USING_UNIT_RFID2, Core only) | |
| - sketch: JapanIDCard | |
| nfctype: NFCB | |
| platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
| platform: esp32 | |
| archi: esp32 | |
| platform-version: 2.0.17 | |
| board: m5stack-core-esp32 | |
| build-properties: "-DUSING_UNIT_RFID2" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Prepare libraries list | |
| id: libs | |
| run: | | |
| { | |
| echo "yaml<<EOF" | |
| echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do | |
| echo "- name: $lib" | |
| done | |
| echo "- source-path: ./" | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Compile examples | |
| uses: arduino/compile-sketches@v1 | |
| with: | |
| fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }} | |
| platforms: | | |
| - name: ${{ matrix.platform }}:${{ matrix.archi }} | |
| source-url: ${{ matrix.platform-url }} | |
| version: ${{ matrix.platform-version }} | |
| libraries: ${{ steps.libs.outputs.yaml }} | |
| sketch-paths: | | |
| - ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.nfctype }}/${{ matrix.sketch }} | |
| cli-compile-flags: | | |
| - --build-property | |
| - build.extra_flags=${{ matrix.build-properties }} |