|
| 1 | +name: Cross-compilation |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - main |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | + |
| 13 | +jobs: |
| 14 | + compile-sketch: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + |
| 17 | + strategy: |
| 18 | + fail-fast: false |
| 19 | + |
| 20 | + matrix: |
| 21 | + board: |
| 22 | + # Uno |
| 23 | + # https://github.com/arduino/ArduinoCore-avr/blob/master/boards.txt |
| 24 | + - fqbn: arduino:avr:mega |
| 25 | + name: Arduino AVR |
| 26 | + platforms: | |
| 27 | + - name: arduino:avr |
| 28 | + source-url: https://downloads.arduino.cc/packages/package_index.json |
| 29 | +
|
| 30 | + # ESP32 |
| 31 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 32 | + - fqbn: esp32:esp32:esp32thing_plus_c |
| 33 | + name: ESP32 Thing Plus C |
| 34 | + platforms: | |
| 35 | + - name: esp32:esp32 |
| 36 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| 37 | +
|
| 38 | + # ESP32-S2 |
| 39 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 40 | + - fqbn: esp32:esp32:sparkfun_esp32s2_thing_plus |
| 41 | + name: ESP32-S2 Thing Plus |
| 42 | + platforms: | |
| 43 | + - name: esp32:esp32 |
| 44 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| 45 | +
|
| 46 | + # ESP32-S3 |
| 47 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 48 | + - fqbn: esp32:esp32:sparkfun_esp32s3_thing_plus |
| 49 | + name: ESP32-S3 Thing Plus |
| 50 | + platforms: | |
| 51 | + - name: esp32:esp32 |
| 52 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| 53 | +
|
| 54 | + # ESP32-C3 |
| 55 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 56 | + - fqbn: esp32:esp32:sparkfun_pro_micro_esp32c3 |
| 57 | + name: ESP32-C3 Pro Micro |
| 58 | + platforms: | |
| 59 | + - name: esp32:esp32 |
| 60 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| 61 | +
|
| 62 | + # ESP32-C6 |
| 63 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 64 | + - fqbn: esp32:esp32:sparkfun_esp32c6_thing_plus |
| 65 | + name: ESP32-C6 Thing Plus |
| 66 | + platforms: | |
| 67 | + - name: esp32:esp32 |
| 68 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| 69 | +
|
| 70 | + # Artemis / Apollo3 Feb 25 - there some issue here -- will need to look at |
| 71 | + # https://github.com/sparkfun/Arduino_Apollo3/blob/main/boards.txt |
| 72 | + - fqbn: SparkFun:apollo3:sfe_artemis_atp |
| 73 | + name: SparkFun Artemis ATP |
| 74 | + platforms: | |
| 75 | + - name: SparkFun:apollo3 |
| 76 | + source-url: https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json |
| 77 | +
|
| 78 | + # ESP8266 |
| 79 | + # https://github.com/esp8266/Arduino/blob/master/boards.txt |
| 80 | + - fqbn: esp8266:esp8266:thingdev |
| 81 | + name: ESP8266 Thing Dev |
| 82 | + platforms: | |
| 83 | + - name: esp8266:esp8266 |
| 84 | + source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json |
| 85 | +
|
| 86 | + # SAMD21 |
| 87 | + # https://github.com/arduino/ArduinoCore-samd/blob/master/boards.txt |
| 88 | + - fqbn: arduino:samd:mkr1000 |
| 89 | + name: SAMD21 MKR1000 |
| 90 | + platforms: | |
| 91 | + - name: arduino:samd |
| 92 | + # source-url: https://downloads.arduino.cc/packages/package_index.json |
| 93 | +
|
| 94 | + # Nano BLE 33 / nRF52840 |
| 95 | + # https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt |
| 96 | + - fqbn: arduino:mbed:nano33ble |
| 97 | + name: Nano BLE 33 |
| 98 | + platforms: | |
| 99 | + - name: arduino:mbed |
| 100 | + # source-url: https://downloads.arduino.cc/packages/package_index.json |
| 101 | +
|
| 102 | + # RP2040 |
| 103 | + # https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt |
| 104 | + - fqbn: rp2040:rp2040:sparkfun_promicrorp2040 |
| 105 | + name: SparkFun Pro Micro RP2040 |
| 106 | + platforms: | |
| 107 | + - name: rp2040:rp2040 |
| 108 | + source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json |
| 109 | +
|
| 110 | + # RP2350 |
| 111 | + # https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt |
| 112 | + - fqbn: rp2040:rp2040:sparkfun_iotredboard_rp2350 |
| 113 | + name: SparkFun IoT RedBoard RP2350 |
| 114 | + platforms: | |
| 115 | + - name: rp2040:rp2040 |
| 116 | + source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json |
| 117 | +
|
| 118 | + # STM32 |
| 119 | + # https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt |
| 120 | + - fqbn: STMicroelectronics:stm32:GenF4 |
| 121 | + name: STM32 GenF4 |
| 122 | + platforms: | |
| 123 | + - name: STMicroelectronics:stm32 |
| 124 | + source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json |
| 125 | +
|
| 126 | + steps: |
| 127 | + - name: Checkout |
| 128 | + uses: actions/checkout@v3 |
| 129 | + |
| 130 | + - name: Branch name and details |
| 131 | + run: | |
| 132 | + echo "running on branch ${{ github.ref_name }}" |
| 133 | + echo "Board: ${{matrix.board.name}}, fqbn: ${{ matrix.board.fqbn }}" |
| 134 | +
|
| 135 | + - name: Compile Sketch |
| 136 | + |
| 137 | + with: |
| 138 | + platforms: ${{ matrix.board.platforms }} |
| 139 | + fqbn: ${{ matrix.board.fqbn }} |
| 140 | + libraries: | |
| 141 | + - source-path: ./ |
| 142 | + sketch-paths: | |
| 143 | + - examples/Example1_PlayFile |
| 144 | + enable-warnings-report: true |
| 145 | + enable-deltas-report: true |
| 146 | + verbose: true |
| 147 | + |
| 148 | + # outputs: |
| 149 | + # report-artifact-name: ${{ steps.report-artifact-name.outputs.report-artifact-name }} |
0 commit comments