Skip to content

Commit

Permalink
Adding missing mbed based platforms, eliminating no longer needed lib…
Browse files Browse the repository at this point in the history
…rary for CI build.
  • Loading branch information
aentinger committed Oct 11, 2021
1 parent 911f10c commit 904ee61
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ env:

jobs:
compile-test:
name: compile for ${{ matrix.fqbn }}
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest

env:
# libraries to install for all boards
UNIVERSAL_LIBRARIES: |
# Install the Arduino_Threads library from the repository
- source-path: ./
- name: Arduino_LSM9DS1
- name: Arduino_APDS9960
- name: ArduinoECCX08
- name: Arduino_HTS221
- name: OneWire
# sketch paths to compile (recursive) for all boards
UNIVERSAL_SKETCH_PATHS: |
- examples
Expand All @@ -49,10 +44,19 @@ jobs:
fail-fast: false

matrix:
fqbn:
- "arduino:mbed:nano33ble"
# - "arduino:mbed:envie_m4"
- "arduino:mbed:envie_m7"
board:
- fqbn: arduino:mbed_nano:nano33ble
platforms: |
- name: arduino:mbed_nano
- fqbn: arduino:mbed_nano:nanorp2040connect
platforms: |
- name: arduino:mbed_nano
- fqbn: arduino:mbed_portenta:envie_m4
platforms: |
- name: arduino:mbed_portenta
- fqbn: arduino:mbed_portenta:envie_m7
platforms: |
- name: arduino:mbed_portenta
steps:
- name: Checkout
Expand Down Expand Up @@ -83,15 +87,10 @@ jobs:
uses: arduino/compile-sketches@v1
with:
cli-version: 'arduino_threads'
fqbn: ${{ matrix.fqbn }}
fqbn: ${{ matrix.board.fqbn }}
libraries: |
${{ env.UNIVERSAL_LIBRARIES }}
platforms: |
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
- name: "arduino:mbed"
# Overwrite the Board Manager installation with the local platform
- source-path: "extras/ArduinoCore-mbed"
name: "arduino:mbed"
platforms: ${{ matrix.board.platforms }}
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
enable-deltas-report: 'true'
Expand Down

0 comments on commit 904ee61

Please sign in to comment.