diff --git a/.github/workflows/.ci_scripts/Arduino-nRF5-excludes b/.github/workflows/.ci_scripts/Arduino-nRF5-excludes new file mode 100644 index 000000000..f6957cdf9 --- /dev/null +++ b/.github/workflows/.ci_scripts/Arduino-nRF5-excludes @@ -0,0 +1,16 @@ + ./examples/BatteryPoweredSensor/BatteryPoweredSensor.ino + ./examples/CO2Sensor/CO2Sensor.ino + ./examples/DustSensorDSM/DustSensorDSM.ino + ./examples/GatewayESP8266/GatewayESP8266.ino + ./examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino + ./examples/GatewayESP8266SecureMQTTClient/GatewayESP8266SecureMQTTClient.ino + ./examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino + ./examples/GatewayESP8266OTA/GatewayESP8266OTA.ino + ./examples/GatewayESP32/GatewayESP32.ino + ./examples/GatewayESP32OTA/GatewayESP32OTA.ino + ./examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino + ./examples/GatewaySerialRS485/GatewaySerialRS485.ino + ./examples/GatewayW5100/GatewayW5100.ino + ./examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino + ./examples/MotionSensorRS485/MotionSensorRS485.ino + ./examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino diff --git a/.github/workflows/.ci_scripts/compile-arduino-sketches.sh b/.github/workflows/.ci_scripts/compile-arduino-sketches.sh index b11381f43..178796472 100644 --- a/.github/workflows/.ci_scripts/compile-arduino-sketches.sh +++ b/.github/workflows/.ci_scripts/compile-arduino-sketches.sh @@ -24,6 +24,7 @@ while read sketch; do arduino-cli compile --fqbn "$FQBN" "$sketch" --warnings more compile_result=$? if [ $compile_result -ne 0 ]; then + echo "::error::Unable to build $sketch" exit_result=1 fi else diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6280f61d..b52e056a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -239,7 +239,7 @@ jobs: build-arduino-MySensors: needs: static-code-tests - if: true # false # This will deactivate the job + if: false # This will deactivate the job runs-on: ubuntu-latest steps: @@ -270,6 +270,7 @@ jobs: # MySensors AVR MysensorsMicro - name: Compile MysensorsMicro (tests) + #if: false # This will deactivate the step run: | FQBN="MySensors:avr:MysensorsMicro:cpu=1Mhz" SKETCHES="./tests" @@ -277,6 +278,7 @@ jobs: ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES - name: Compile MysensorsMicro (examples) + #if: false # This will deactivate the step run: | FQBN="MySensors:avr:MysensorsMicro:cpu=1Mhz" SKETCHES="./examples" @@ -285,6 +287,7 @@ jobs: # MySensors SAMD MySensorsGW - name: Compile MySensorsGW (tests) + #if: false # This will deactivate the step run: | FQBN="MySensors:samd:mysensors_gw_native" SKETCHES="./tests" @@ -292,8 +295,64 @@ jobs: ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES - name: Compile MySensorsGW (examples) + #if: false # This will deactivate the step run: | FQBN="MySensors:samd:mysensors_gw_native" SKETCHES="./examples" EXCLUDES="./.github/workflows/.ci_scripts/MySensors-SAMD-excludes" ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES + + build-arduino-STM32F1: + needs: static-code-tests + if: false # This will deactivate the job + runs-on: ubuntu-latest + + build-arduino-ESP8266: + needs: static-code-tests + if: false # This will deactivate the job + runs-on: ubuntu-latest + + build-arduino-nRF5: + needs: static-code-tests + #if: false # This will deactivate the job + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set execute permissions for shell scripts + run: chmod +x ./.github/workflows/.ci_scripts/*.sh + + - name: Set up Arduino CLI + uses: arduino/setup-arduino-cli@master + + - name: Add library symlink to this MySensors repository + run: | + mkdir -p "$HOME/Arduino/libraries" + ln -s "$PWD" "$HOME/Arduino/libraries/." + + - 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 core update-index + arduino-cli core install sandeepmistry:nRF5 + #arduino-cli lib install "Ethernet" + #arduino-cli lib install "SD" + + # MySensors AVR MysensorsMicro + - name: Compile nRF52832 (tests) + #if: false # This will deactivate the step + run: | + FQBN="sandeepmistry:nRF5:Generic_nRF52832:softdevice=none,lfclk=lfxo" + SKETCHES="./tests" + EXCLUDES="./.github/workflows/.ci_scripts/Arduino-nRF5-excludes" + ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES + + - name: Compile nRF52832 (examples) + #if: false # This will deactivate the step + run: | + FQBN="sandeepmistry:nRF5:Generic_nRF52832:softdevice=none,lfclk=lfxo" + SKETCHES="./examples" + EXCLUDES="./.github/workflows/.ci_scripts/Arduino-nRF5-excludes" + ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES