diff --git a/.github/workflows/.ci_scripts/Arduino-STM32F1-excludes b/.github/workflows/.ci_scripts/Arduino-STM32F1-excludes new file mode 100644 index 000000000..3e1f589cc --- /dev/null +++ b/.github/workflows/.ci_scripts/Arduino-STM32F1-excludes @@ -0,0 +1,8 @@ +./examples/GatewayESP8266/GatewayESP8266.ino +./examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino +./examples/GatewayESP8266SecureMQTTClient/GatewayESP8266SecureMQTTClient.ino +./examples/GatewayESP8266OTA/GatewayESP8266OTA.ino +./examples/GatewayESP32/GatewayESP32.ino +./examples/GatewayESP32OTA/GatewayESP32OTA.ino +./examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino +./examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d6068fec..16b2d8f03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,6 @@ jobs: needs: get_commits steps: - #### ToDo: Check if the output is correct - name: Debug commits output run: | echo "Commits: ${{ matrix.commit }}" @@ -304,7 +303,7 @@ jobs: build-arduino-STM32F1: needs: static-code-tests - if: false # This will deactivate the job + #if: false # This will deactivate the job runs-on: ubuntu-latest steps: @@ -324,12 +323,29 @@ 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 http://dan.drown.org/stm32duino/package_STM32duino_index.json arduino-cli core update-index - arduino-cli core install sandeepmistry:nRF5 + arduino-cli core install stm32duino:STM32F1 #arduino-cli lib install "Ethernet" #arduino-cli lib install "SD" + # stm32duino STM32F1 generic + - name: Compile STM32F1 (tests) + #if: false # This will deactivate the step + run: | + FQBN="stm32duino:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd" + SKETCHES="./tests" + EXCLUDES="./.github/workflows/.ci_scripts/Arduino-STM32F1-excludes" + ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES + + - name: Compile STM32F1 (examples) + #if: false # This will deactivate the step + run: | + FQBN="stm32duino:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=DFUUploadMethod,cpu_speed=speed_72mhz,opt=osstd" + SKETCHES="./examples" + EXCLUDES="./.github/workflows/.ci_scripts/Arduino-STM32F1-excludes" + ./.github/workflows/.ci_scripts/compile-arduino-sketches.sh $FQBN $SKETCHES $EXCLUDES + build-arduino-ESP8266: needs: static-code-tests #if: false # This will deactivate the job