Skip to content

Commit a2c0c46

Browse files
committed
Activate ESP8266 build activated
In the `Arduino-ESP8266-excludes` file, several example sketches have been excluded from the CI test suite.
1 parent c15a3bf commit a2c0c46

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# TODO: Add the following examples to the CI test suite
2+
#
3+
./examples/BatteryPoweredSensor/BatteryPoweredSensor.ino
4+
./examples/CO2Sensor/CO2Sensor.ino
5+
./examples/DustSensorDSM/DustSensorDSM.ino
6+
./examples/MotionSensorRS485/MotionSensorRS485.ino
7+
./examples/SoilMoistSensor/SoilMoistSensor.ino
8+
#
9+
# Exclude the following example sketches from the CI test suite
10+
#
11+
./examples/GatewaySerialRS485/GatewaySerialRS485.ino
12+
./examples/GatewayW5100/GatewayW5100.ino
13+
./examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino
14+
./examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino
15+
./examples/GatewayESP32/GatewayESP32.ino
16+
./examples/GatewayESP32OTA/GatewayESP32OTA.ino
17+
./examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino
18+
./examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino

.github/workflows/build.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ jobs:
332332
333333
build-arduino-ESP8266:
334334
needs: static-code-tests
335-
if: false # This will deactivate the job
335+
#if: false # This will deactivate the job
336336
runs-on: ubuntu-latest
337337

338338
steps:
@@ -352,15 +352,32 @@ jobs:
352352
353353
- name: Install dependencies
354354
run: |
355-
arduino-cli config add board_manager.additional_urls https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json
355+
arduino-cli config add board_manager.additional_urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
356356
arduino-cli core update-index
357-
arduino-cli core install sandeepmistry:nRF5
357+
arduino-cli core install esp8266:esp8266
358358
#arduino-cli lib install "Ethernet"
359359
#arduino-cli lib install "SD"
360360
361+
# arduino ESP8266 generic
362+
- name: Compile ESP8266 (tests)
363+
#if: false # This will deactivate the step
364+
run: |
365+
FQBN="esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=512K,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200"
366+
SKETCHES="./tests"
367+
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-ESP8266-excludes"
368+
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
369+
370+
- name: Compile ESP8266 (examples)
371+
#if: false # This will deactivate the step
372+
run: |
373+
FQBN="esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=512K,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200"
374+
SKETCHES="./examples"
375+
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-ESP8266-excludes"
376+
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
377+
361378
build-arduino-nRF5:
362379
needs: static-code-tests
363-
#if: false # This will deactivate the job
380+
if: false # This will deactivate the job
364381
runs-on: ubuntu-latest
365382

366383
steps:
@@ -403,7 +420,7 @@ jobs:
403420
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-nRF5-excludes"
404421
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
405422
406-
# Arduino Generic_nRF51822
423+
# arduino-nRF5 Generic_nRF51822
407424
- name: Compile Generic_nRF51822 (tests)
408425
#if: false # This will deactivate the step
409426
run: |

0 commit comments

Comments
 (0)