Skip to content

Commit 5b2ae62

Browse files
authored
Merge pull request #333 from pennam/ci-mbed-portenta
CI: Use mbed_portenta core release instead of ArduinoCore-mbed HEAD
2 parents 9673032 + d404e8d commit 5b2ae62

File tree

1 file changed

+12
-37
lines changed

1 file changed

+12
-37
lines changed

.github/workflows/compile-examples.yml

+12-37
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ jobs:
2929
- examples/ArduinoIoTCloud-Advanced
3030
- examples/ArduinoIoTCloud-Basic
3131
- examples/utility/ArduinoIoTCloud_Travis_CI
32-
ARDUINOCORE_MBED_STAGING_PATH: extras/ArduinoCore-mbed
33-
ARDUINOCORE_API_STAGING_PATH: extras/ArduinoCore-API
3432
SKETCHES_REPORTS_PATH: sketches-reports
3533

3634
strategy:
@@ -50,8 +48,8 @@ jobs:
5048
type: gsm
5149
- fqbn: arduino:samd:mkrnb1500
5250
type: nb
53-
- fqbn: arduino:mbed:envie_m7
54-
type: mbed
51+
- fqbn: arduino:mbed_portenta:envie_m7
52+
type: mbed_portenta
5553
- fqbn: esp8266:esp8266:huzzah
5654
type: esp8266
5755
- fqbn: esp32:esp32:esp32
@@ -67,7 +65,7 @@ jobs:
6765
- board:
6866
type: mkr1000
6967
platforms: |
70-
# Install Arduino SAMD Boards via Boards Manager for the toolchain
68+
# Install samd platform via Boards Manager
7169
- name: arduino:samd
7270
libraries: |
7371
- name: ArduinoECCX08
@@ -80,7 +78,7 @@ jobs:
8078
- board:
8179
type: nina
8280
platforms: |
83-
# Install Arduino SAMD Boards via Boards Manager for the toolchain
81+
# Install samd and mbed_nano platform via Boards Manager
8482
- name: arduino:samd
8583
- name: arduino:mbed_nano
8684
libraries: |
@@ -95,6 +93,7 @@ jobs:
9593
- board:
9694
type: wan
9795
platforms: |
96+
# Install samd platform via Boards Manager
9897
- name: arduino:samd
9998
libraries: |
10099
- name: ArduinoECCX08
@@ -106,6 +105,7 @@ jobs:
106105
- board:
107106
type: gsm
108107
platforms: |
108+
# Install samd platform via Boards Manager
109109
- name: arduino:samd
110110
libraries: |
111111
- name: ArduinoECCX08
@@ -118,6 +118,7 @@ jobs:
118118
- board:
119119
type: nb
120120
platforms: |
121+
# Install samd platform via Boards Manager
121122
- name: arduino:samd
122123
libraries: |
123124
- name: ArduinoECCX08
@@ -128,22 +129,20 @@ jobs:
128129
- examples/utility/Provisioning
129130
# Portenta
130131
- board:
131-
type: mbed
132+
type: mbed_portenta
132133
platforms: |
133-
# Install Arduino mbed-Enabled Boards via Boards Manager for the toolchain
134-
- name: arduino:mbed
135-
# Overwrite the Arduino mbed-Enabled Boards release version with version from the tip of the master branch (located in local path because of the need to first install ArduinoCore-API)
136-
- source-path: extras/ArduinoCore-mbed
137-
name: arduino:mbed
134+
# Install mbed_portenta platform via Boards Manager
135+
- name: arduino:mbed_portenta
138136
libraries: |
139137
- name: ArduinoECCX08
140138
- name: Arduino_Portenta_OTA
141139
sketch-paths: |
142140
- examples/utility/Provisioning
141+
# Nicla Vision
143142
- board:
144143
type: mbed_nicla
145144
platforms: |
146-
# Install Arduino mbed-Enabled Boards via Boards Manager for the toolchain
145+
# Install mbed_nicla platform via Boards Manager
147146
- name: arduino:mbed_nicla
148147
libraries: |
149148
- name: Arduino_Portenta_OTA
@@ -174,30 +173,6 @@ jobs:
174173
- name: Checkout
175174
uses: actions/checkout@v2
176175

177-
# it's necessary to checkout the platform before installing it so that the ArduinoCore-API dependency can be added
178-
- name: Checkout ArduinoCore-mbed
179-
# this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used
180-
if: matrix.board.type == 'mbed'
181-
uses: actions/checkout@v2
182-
with:
183-
repository: arduino/ArduinoCore-mbed
184-
# the arduino/compile-sketches action will install the platform from this path
185-
path: ${{ env.ARDUINOCORE_MBED_STAGING_PATH }}
186-
187-
- name: Checkout ArduinoCore-API
188-
# this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used
189-
if: matrix.board.type == 'mbed'
190-
uses: actions/checkout@v2
191-
with:
192-
repository: arduino/ArduinoCore-API
193-
path: ${{ env.ARDUINOCORE_API_STAGING_PATH }}
194-
195-
- name: Install ArduinoCore-API
196-
# this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used
197-
if: matrix.board.type == 'mbed'
198-
run: |
199-
mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino"
200-
201176
- name: Install ESP32 platform dependencies
202177
if: matrix.board.type == 'esp32'
203178
run: pip3 install pyserial

0 commit comments

Comments
 (0)