Compile Examples #34
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 | |
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows | |
on: | |
push: | |
paths: | |
- ".github/workflows/compile-examples.yml" | |
- "examples/**" | |
- "src/**" | |
pull_request: | |
paths: | |
- ".github/workflows/compile-examples.yml" | |
- "examples/**" | |
- "src/**" | |
schedule: | |
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms). | |
- cron: "0 8 * * TUE" | |
workflow_dispatch: | |
repository_dispatch: | |
jobs: | |
build: | |
name: ${{ matrix.board.fqbn }} | |
runs-on: ubuntu-latest | |
env: | |
SKETCHES_REPORTS_PATH: sketches-reports | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- fqbn: arduino:samd:arduino_zero_edbg | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkr1000 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrzero | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrwifi1010 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrfox1200 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrwan1300 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrwan1310 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrgsm1400 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrnb1500 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:mkrvidor4000 | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:nano_33_iot | |
platforms: | | |
- name: arduino:samd | |
- fqbn: arduino:samd:tian | |
platforms: | | |
- name: arduino:samd | |
sketch-paths: | | |
- examples/EG25-G_Example1_GNSS_GPRMC | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Compile examples | |
uses: arduino/compile-sketches@v1 | |
with: | |
github-token: ${{ secrets.GH_REPO_TOKEN }} | |
fqbn: ${{ matrix.board.fqbn }} | |
platforms: ${{ matrix.board.platforms }} | |
libraries: | | |
# Install the library from the local path. | |
- source-path: ./ | |
- name: FC0003390327 | |
sketch-paths: | | |
# Sketches to compile for all boards | |
- examples/EG25-G_Example1_GNSS_GPRMC | |
- examples/EG25-G_Example2_Identification | |
- examples/EG25-G_Example2_Identification_ESPSoftwareSerial | |
- examples/EG25-G_Example3_NetworkInfo | |
- examples/EG25-G_Example4_RegisterOperator | |
- examples/EG25-G_Example5_ReceiveSMS | |
- examples/EG25-G_Example6_SendSMS | |
- examples/EG25-G_Example7_ConfigurePacketSwitchedData | |
- examples/EG25-G_Example8_Ping | |
- examples/EG25-G_Example9_ThingSpeak | |
- examples/EG25-G_Example10_SocketPingPong | |
- examples/EG25-G_Example10_SocketPingPong_BinaryTCP | |
- examples/EG25-G_Example10_SocketPingPong_MultipleTCP | |
- examples/EG25-G_Example10_SocketPingPong_MultipleUDP | |
- examples/EG25-G_Example11_Clock | |
- examples/EG25-G_Example12_AssistNowOnline | |
- examples/EG25-G_Example13_SetClockWithNTP | |
- examples/EG25-G_Example14_AssistNowOffline | |
- examples/EG25-G_Example15_GNSS_NTRIP_Caster_With_Callbacks | |
- examples/EG25-G_Example16_GNSS_NTRIP_Caster__Polling | |
# Board-specific sketches | |
${{ matrix.board.sketch-paths }} | |
enable-deltas-report: true | |
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} | |
- name: Save sketches report as workflow artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: error | |
path: ${{ env.SKETCHES_REPORTS_PATH }} | |
name: ${{ env.SKETCHES_REPORTS_PATH }} |