Release v1.2.0. #42
Workflow file for this run
This file contains 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: Compile Examples | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/compile-examples.yml" | |
- "examples/**" | |
- "src/**" | |
push: | |
paths: | |
- ".github/workflows/compile-examples.yml" | |
- "examples/**" | |
- "src/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
UNIVERSAL_SKETCH_PATHS: | | |
- examples/SimpleAccelerometer | |
- examples/SimpleGyroscope | |
- examples/SimpleMagnetometer | |
SKETCHES_REPORTS_PATH: sketches-reports | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- fqbn: arduino:samd:mkr1000 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkr1000 | |
- fqbn: arduino:samd:mkrzero | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrzero | |
- fqbn: arduino:samd:mkrwifi1010 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrwifi1010 | |
- fqbn: arduino:samd:mkrfox1200 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrfox1200 | |
- fqbn: arduino:samd:mkrwan1300 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrwan1300 | |
- fqbn: arduino:samd:mkrwan1310 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrwan1310 | |
- fqbn: arduino:samd:mkrgsm1400 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrgsm1400 | |
- fqbn: arduino:samd:mkrnb1500 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrnb1500 | |
- fqbn: arduino:samd:mkrvidor4000 | |
platforms: | | |
- name: arduino:samd | |
artifact-name-suffix: arduino-samd-mkrvidor4000 | |
- fqbn: arduino:mbed_portenta:envie_m7 | |
platforms: | | |
- name: arduino:mbed_portenta | |
artifact-name-suffix: arduino-mbed_portenta-envie_m7 | |
sketch-paths: | | |
- examples/Interrupts_subclassing | |
- fqbn: arduino:mbed_portenta:envie_m7:target_core=cm4 | |
platforms: | | |
- name: arduino:mbed_portenta | |
artifact-name-suffix: arduino-mbed_portenta-envie_m7-target_code-cm4 | |
sketch-paths: | | |
- examples/Interrupts_subclassing | |
- fqbn: arduino:mbed_nano:nano33ble | |
platforms: | | |
- name: arduino:mbed_nano | |
artifact-name-suffix: arduino-mbed_nano-nano33ble | |
sketch-paths: | | |
- examples/Interrupts_subclassing | |
- fqbn: arduino:mbed_nano:nanorp2040connect | |
platforms: | | |
- name: arduino:mbed_nano | |
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect | |
- fqbn: arduino:mbed_edge:edge_control | |
platforms: | | |
- name: arduino:mbed_edge | |
artifact-name-suffix: arduino-mbed_edge-edge_control | |
- fqbn: esp32:esp32:esp32 | |
platforms: | | |
- name: esp32:esp32 | |
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
artifact-name-suffix: esp32-esp32-esp32 | |
- fqbn: rp2040:rp2040:rpipico | |
platforms: | | |
- name: rp2040:rp2040 | |
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | |
artifact-name-suffix: rp2040-rp2040-rpipico | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install ESP32 platform dependencies | |
if: startsWith(matrix.board.fqbn, 'esp32:esp32') | |
run: pip3 install pyserial | |
- name: Compile examples | |
uses: arduino/compile-sketches@main | |
with: | |
fqbn: ${{ matrix.board.fqbn }} | |
platforms: ${{ matrix.board.platforms }} | |
enable-deltas-report: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} | |
sketch-paths: | | |
${{ env.UNIVERSAL_SKETCH_PATHS }} | |
${{ matrix.sketch-paths }} | |
- name: Save memory usage change report as artifact | |
if: github.event_name == 'pull_request' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sketches-report-${{ matrix.board.artifact-name-suffix }} | |
path: ${{ env.SKETCHES_REPORTS_PATH }} |