|
| 1 | +name: Compile Sketch |
| 2 | + |
| 3 | +on: |
| 4 | + - push |
| 5 | + - pull_request |
| 6 | + |
| 7 | + |
| 8 | +jobs: |
| 9 | + compile-sketch: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + |
| 15 | + matrix: |
| 16 | + board: |
| 17 | + # Uno |
| 18 | + # https://github.com/arduino/ArduinoCore-avr/blob/master/boards.txt |
| 19 | + - fqbn: arduino:avr:uno |
| 20 | + platforms: | |
| 21 | + - name: arduino:avr |
| 22 | + source-url: https://downloads.arduino.cc/packages/package_index.json |
| 23 | +
|
| 24 | + # ESP32 |
| 25 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 26 | + - fqbn: esp32:esp32:esp32 |
| 27 | + platforms: | |
| 28 | + - name: esp32:esp32 |
| 29 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| 30 | +
|
| 31 | + # ESP32-S2 |
| 32 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 33 | + - fqbn: esp32:esp32:esp32s2 |
| 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-C3 |
| 39 | + # https://github.com/espressif/arduino-esp32/blob/master/boards.txt |
| 40 | + - fqbn: esp32:esp32:esp32c3 |
| 41 | + platforms: | |
| 42 | + - name: esp32:esp32 |
| 43 | + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| 44 | +
|
| 45 | + # Artemis / Apollo3 |
| 46 | + # https://github.com/sparkfun/Arduino_Apollo3/blob/main/boards.txt |
| 47 | + - fqbn: SparkFun:apollo3:sfe_artemis_atp |
| 48 | + platforms: | |
| 49 | + - name: SparkFun:apollo3 |
| 50 | + source-url: https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json |
| 51 | +
|
| 52 | + # ESP8266 |
| 53 | + # https://github.com/esp8266/Arduino/blob/master/boards.txt |
| 54 | + - fqbn: esp8266:esp8266:thingdev |
| 55 | + platforms: | |
| 56 | + - name: esp8266:esp8266 |
| 57 | + source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json |
| 58 | +
|
| 59 | + # SAMD21 |
| 60 | + # https://github.com/arduino/ArduinoCore-samd/blob/master/boards.txt |
| 61 | + - fqbn: arduino:samd:mkr1000 |
| 62 | + platforms: | |
| 63 | + - name: arduino:samd |
| 64 | + # source-url: https://downloads.arduino.cc/packages/package_index.json |
| 65 | +
|
| 66 | + # Nano BLE 33 / nRF52840 |
| 67 | + # https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt |
| 68 | + - fqbn: arduino:mbed:nano33ble |
| 69 | + platforms: | |
| 70 | + - name: arduino:mbed |
| 71 | + # source-url: https://downloads.arduino.cc/packages/package_index.json |
| 72 | +
|
| 73 | + # RP2040 |
| 74 | + # https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt |
| 75 | + - fqbn: rp2040:rp2040:sparkfun_promicrorp2040 |
| 76 | + platforms: | |
| 77 | + - name: rp2040:rp2040 |
| 78 | + source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json |
| 79 | +
|
| 80 | + # STM32 |
| 81 | + # https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt |
| 82 | + - fqbn: STMicroelectronics:stm32:GenF1 |
| 83 | + platforms: | |
| 84 | + - name: STMicroelectronics:stm32 |
| 85 | + source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json |
| 86 | +
|
| 87 | + steps: |
| 88 | + - name: Checkout |
| 89 | + uses: actions/checkout@v2 |
| 90 | + |
| 91 | + - name: Compile Sketch |
| 92 | + uses: arduino/compile-sketches@v1 |
| 93 | + with: |
| 94 | + platforms: ${{ matrix.board.platforms }} |
| 95 | + fqbn: ${{ matrix.board.fqbn }} |
| 96 | + libraries: | |
| 97 | + - source-url: https://github.com/${{github.repository}}.git |
| 98 | + sketch-paths: | |
| 99 | + - examples/Example10_AltitudeMSL |
| 100 | + - examples/Example11_ResetModule/Example1_FactoryDefaultviaI2C |
| 101 | + - examples/Example13_PVT/Example1_AutoPVT |
| 102 | + - examples/Example13_PVT/Example2_AutoPVT_ExplicitUpdate |
| 103 | + - examples/Example14_DebugOutput |
| 104 | + - examples/Example15_GetDateTime |
| 105 | + - examples/Example16_Nanosecond_MaxOutput |
| 106 | + - examples/Example16_PartialSecond_MaxOutput |
| 107 | + - examples/Example18_PowerSaveMode |
| 108 | + - examples/Example19_DynamicModel |
| 109 | + - examples/Example20_SendCustomCommand |
| 110 | + enable-warnings-report: true |
| 111 | + # verbose: true |
| 112 | + |
| 113 | + # outputs: |
| 114 | + # report-artifact-name: ${{ steps.report-artifact-name.outputs.report-artifact-name }} |
| 115 | + |
0 commit comments