correct syntax of github action #231
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: Library Compile | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: arduino/arduino-lint-action@v1 | |
| with: | |
| library-manager: update | |
| project-type: library | |
| build: | |
| name: Test compile | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| board: | |
| - fbqn: arduino:avr:nano # arudino nano | |
| platforms: | | |
| - name: arduino:avr | |
| report-name-suffix: arduino_avr_nano | |
| - fbqn: arduino:sam:arduino_due_x # arduino due | |
| platforms: | | |
| - name: arduino:sam | |
| report-name-suffix: arduino_sam_due | |
| - fbqn: arduino:samd:nano_33_iot # samd21 | |
| platforms: | | |
| - name: arduino:samd | |
| report-name-suffix: arduino_samd_nano_33_iot | |
| - fbqn: adafruit:samd:adafruit_metro_m4 # samd51 | |
| platforms: | | |
| - name: adafruit:samd | |
| source-url: "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" | |
| report-name-suffix: adafruit_samd_metro_m4 | |
| - fbqn: esp32:esp32:esp32 # esp32 | |
| platforms: | | |
| - name: esp32:esp32 | |
| source-url: "https://espressif.github.io/arduino-esp32/package_esp32_index.json" | |
| report-name-suffix: esp32_esp32 | |
| - fbqn: esp32:esp32:esp32s2 # esp32s2 | |
| platforms: | | |
| - name: esp32:esp32 | |
| source-url: "https://espressif.github.io/arduino-esp32/package_esp32_index.json" | |
| report-name-suffix: esp32_esp32s2 | |
| - fbqn: STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 # stm32 bluepill | |
| platforms: | | |
| - name: | |
| source-url: "https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json" | |
| report-name-suffix: stm32_genf1_bluepill_f103c8 | |
| - fbqn: STMicroelectronics:stm32:Nucleo_64:pnum=NUCLEO_F411RE # stm32 nucleo | |
| platforms: | | |
| - name: STMicroelectronics:stm32 | |
| source-url: "https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json" | |
| report-name-suffix: stm32_nucleo_f411re | |
| - fbqn: arduino:mbed_rp2040:pico # rpi pico | |
| platforms: | | |
| - name: STMicroelectronics:stm32 | |
| source-url: "https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json" | |
| report-name-suffix: arduino_mbed_rp2040_pico | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Compile all examples | |
| uses: arduino/compile-sketches@v1 | |
| with: | |
| fqbn: ${{ matrix.board.fqbn }} | |
| platforms: ${{ matrix.board.platforms }} | |
| libraries: | | |
| - name: "Arduino-FOC" | |
| source-url: "https://github.com/simplefoc/Arduino-FOC.git" | |
| version: dev | |
| sketch-paths: | | |
| - examples | |
| enable-deltas-report: true | |
| sketches-report-path: sketches-reports | |
| - name: Upload sketches reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sketches-report-${{ matrix.board.report-name-suffix }} | |
| path: sketches-reports | |
| report: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Report size deltas | |
| uses: arduino/report-size-deltas@v1 |