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