Skip to content

Commit

Permalink
Activate ESP8266 build activated
Browse files Browse the repository at this point in the history
In the `Arduino-ESP8266-excludes` file, several
example sketches have been excluded
from the CI test suite.
  • Loading branch information
virtual-maker committed Jan 2, 2025
1 parent c15a3bf commit a2c0c46
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/.ci_scripts/Arduino-ESP8266-excludes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# TODO: Add the following examples to the CI test suite
#
./examples/BatteryPoweredSensor/BatteryPoweredSensor.ino
./examples/CO2Sensor/CO2Sensor.ino
./examples/DustSensorDSM/DustSensorDSM.ino
./examples/MotionSensorRS485/MotionSensorRS485.ino
./examples/SoilMoistSensor/SoilMoistSensor.ino
#
# Exclude the following example sketches from the CI test suite
#
./examples/GatewaySerialRS485/GatewaySerialRS485.ino
./examples/GatewayW5100/GatewayW5100.ino
./examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino
./examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino
./examples/GatewayESP32/GatewayESP32.ino
./examples/GatewayESP32OTA/GatewayESP32OTA.ino
./examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino
./examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino
27 changes: 22 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ jobs:
build-arduino-ESP8266:
needs: static-code-tests
if: false # This will deactivate the job
#if: false # This will deactivate the job
runs-on: ubuntu-latest

steps:
Expand All @@ -352,15 +352,32 @@ jobs:
- name: Install dependencies
run: |
arduino-cli config add board_manager.additional_urls https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json
arduino-cli config add board_manager.additional_urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
arduino-cli core update-index
arduino-cli core install sandeepmistry:nRF5
arduino-cli core install esp8266:esp8266
#arduino-cli lib install "Ethernet"
#arduino-cli lib install "SD"
# arduino ESP8266 generic
- name: Compile ESP8266 (tests)
#if: false # This will deactivate the step
run: |
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"
SKETCHES="./tests"
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-ESP8266-excludes"
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
- name: Compile ESP8266 (examples)
#if: false # This will deactivate the step
run: |
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"
SKETCHES="./examples"
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-ESP8266-excludes"
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
build-arduino-nRF5:
needs: static-code-tests
#if: false # This will deactivate the job
if: false # This will deactivate the job
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -403,7 +420,7 @@ jobs:
EXCLUDES="./.github/workflows/.ci_scripts/Arduino-nRF5-excludes"
./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES
# Arduino Generic_nRF51822
# arduino-nRF5 Generic_nRF51822
- name: Compile Generic_nRF51822 (tests)
#if: false # This will deactivate the step
run: |
Expand Down

0 comments on commit a2c0c46

Please sign in to comment.