Skip to content

Commit deff807

Browse files
committed
Add STM32duino support
Updated build.yml to include STM32duino board manager URL. Modified arduino-cli commands to install STM32duino core. Added steps to compile STM32F1 sketches. Updated Arduino-STM32F1-excludes to exclude ESP8266/ESP32 examples.
1 parent b7e63ec commit deff807

File tree

2 files changed

+50
-10
lines changed

2 files changed

+50
-10
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
./examples/GatewayESP8266/GatewayESP8266.ino
2+
./examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino
3+
./examples/GatewayESP8266SecureMQTTClient/GatewayESP8266SecureMQTTClient.ino
4+
./examples/GatewayESP8266OTA/GatewayESP8266OTA.ino
5+
./examples/GatewayESP32/GatewayESP32.ino
6+
./examples/GatewayESP32OTA/GatewayESP32OTA.ino
7+
./examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino
8+
./examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino
9+
10+
#
11+
./examples/BatteryPoweredSensor/BatteryPoweredSensor.ino
12+
./examples/MotionSensorRS485/MotionSensorRS485.ino
13+
14+
#
15+
./examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino
16+
./examples/GatewaySerialRS485/GatewaySerialRS485.ino
17+
./examples/GatewayW5100/GatewayW5100.ino
18+
./examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino

.github/workflows/build.yml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
needs: get_commits
5050

5151
steps:
52-
#### ToDo: Check if the output is correct
5352
- name: Debug commits output
5453
run: |
5554
echo "Commits: ${{ matrix.commit }}"
@@ -130,9 +129,10 @@ jobs:
130129
echo "::error::C++ Code with errors detected. See detailed report in Artifacts section below."
131130
exit 1
132131
132+
# Build Arduino AVR
133133
build-arduino-AVR:
134134
needs: static-code-tests
135-
#if: false # This will deactivate the job
135+
if: false # This will deactivate the job
136136
runs-on: ubuntu-latest
137137

138138
steps:
@@ -195,6 +195,7 @@ jobs:
195195
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-AVR-excludes"
196196
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
197197
198+
# Build Arduino ESP32
198199
build-arduino-ESP32:
199200
needs: static-code-tests
200201
#if: false # This will deactivate the job
@@ -237,9 +238,10 @@ jobs:
237238
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-ESP32-excludes"
238239
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
239240
241+
# Build Arduino MySensors Boards (AVR, SAMD)
240242
build-arduino-MySensors:
241243
needs: static-code-tests
242-
#if: false # This will deactivate the job
244+
if: false # This will deactivate the job
243245
runs-on: ubuntu-latest
244246

245247
steps:
@@ -302,9 +304,10 @@ jobs:
302304
EXCLUDES="./.github/workflows/.ci_scripts/MySensors-SAMD-excludes"
303305
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
304306
307+
# Build Arduino STM32F1
305308
build-arduino-STM32F1:
306309
needs: static-code-tests
307-
if: false # This will deactivate the job
310+
#if: false # This will deactivate the job
308311
runs-on: ubuntu-latest
309312

310313
steps:
@@ -324,15 +327,33 @@ jobs:
324327
325328
- name: Install dependencies
326329
run: |
327-
arduino-cli config add board_manager.additional_urls https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json
330+
arduino-cli config add board_manager.additional_urls http://dan.drown.org/stm32duino/package_STM32duino_index.json
328331
arduino-cli core update-index
329-
arduino-cli core install sandeepmistry:nRF5
330-
#arduino-cli lib install "Ethernet"
331-
#arduino-cli lib install "SD"
332+
arduino-cli core install stm32duino:STM32F1
333+
arduino-cli lib install "Ethernet"
334+
#arduino-cli lib install "SoftwareSerial" # Library not available
332335
336+
# stm32duino STM32F1 generic
337+
- name: Compile STM32F1 (tests)
338+
#if: false # This will deactivate the step
339+
run: |
340+
FQBN="stm32duino:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd"
341+
SKETCHES="./tests"
342+
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-STM32F1-excludes"
343+
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
344+
345+
- name: Compile STM32F1 (examples)
346+
#if: false # This will deactivate the step
347+
run: |
348+
FQBN="stm32duino:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd"
349+
SKETCHES="./examples"
350+
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-STM32F1-excludes"
351+
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
352+
353+
# Build Arduino ESP8266
333354
build-arduino-ESP8266:
334355
needs: static-code-tests
335-
#if: false # This will deactivate the job
356+
if: false # This will deactivate the job
336357
runs-on: ubuntu-latest
337358

338359
steps:
@@ -375,9 +396,10 @@ jobs:
375396
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-ESP8266-excludes"
376397
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
377398
399+
# Build Arduino nRF5
378400
build-arduino-nRF5:
379401
needs: static-code-tests
380-
#if: false # This will deactivate the job
402+
if: false # This will deactivate the job
381403
runs-on: ubuntu-latest
382404

383405
steps:

0 commit comments

Comments
 (0)