Skip to content

Commit ccec00b

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 ccec00b

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

.github/workflows/build.yml

Lines changed: 20 additions & 4 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 }}"
@@ -304,7 +303,7 @@ jobs:
304303
305304
build-arduino-STM32F1:
306305
needs: static-code-tests
307-
if: false # This will deactivate the job
306+
#if: false # This will deactivate the job
308307
runs-on: ubuntu-latest
309308

310309
steps:
@@ -324,12 +323,29 @@ jobs:
324323
325324
- name: Install dependencies
326325
run: |
327-
arduino-cli config add board_manager.additional_urls https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json
326+
arduino-cli config add board_manager.additional_urls http://dan.drown.org/stm32duino/package_STM32duino_index.json
328327
arduino-cli core update-index
329-
arduino-cli core install sandeepmistry:nRF5
328+
arduino-cli core install stm32duino:STM32F1
330329
#arduino-cli lib install "Ethernet"
331330
#arduino-cli lib install "SD"
332331
332+
# stm32duino STM32F1 generic
333+
- name: Compile STM32F1 (tests)
334+
#if: false # This will deactivate the step
335+
run: |
336+
FQBN="stm32duino:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd"
337+
SKETCHES="./tests"
338+
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-STM32F1-excludes"
339+
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
340+
341+
- name: Compile STM32F1 (examples)
342+
#if: false # This will deactivate the step
343+
run: |
344+
FQBN="stm32duino:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd"
345+
SKETCHES="./examples"
346+
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-STM32F1-excludes"
347+
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
348+
333349
build-arduino-ESP8266:
334350
needs: static-code-tests
335351
#if: false # This will deactivate the job

0 commit comments

Comments
 (0)