diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ab013b..5f8610f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,8 @@ on: tags-ignore: - '**' paths: + - '.github/workflows/**' + - 'buildroot/bin/**' - 'Multiprotocol/**' # Trigger the workflow on pull requests to the master branch @@ -17,6 +19,8 @@ on: branches: - master paths: + - '.github/workflows/**' + - 'buildroot/bin/**' - 'Multiprotocol/**' # Triggers the workflow on release creation @@ -86,8 +90,22 @@ jobs: # Load the build functions source ./buildroot/bin/buildFunctions; + # Get the version + getMultiVersion + echo "MULTI_VERSION=$(echo $MULTI_VERSION)" >> $GITHUB_ENV + # Get all the protocols for this board getAllProtocols + echo "A7105_PROTOCOLS=$(echo $A7105_PROTOCOLS)" >> $GITHUB_ENV + echo "CC2500_PROTOCOLS=$(echo $CC2500_PROTOCOLS)" >> $GITHUB_ENV + echo "CYRF6936_PROTOCOLS=$(echo $CYRF6936_PROTOCOLS)" >> $GITHUB_ENV + echo "NRF24L01_PROTOCOLS=$(echo $NRF24L01_PROTOCOLS)" >> $GITHUB_ENV + echo "SX1276_PROTOCOLS=$(echo $SX1276_PROTOCOLS)" >> $GITHUB_ENV + echo "ALL_PROTOCOLS=$(echo $ALL_PROTOCOLS)" >> $GITHUB_ENV + + # Get all the RF modules for this board + getAllRFModules + echo "ALL_RFMODULES=$(echo $ALL_RFMODULES)" >> $GITHUB_ENV # Disable CHECK_FOR_BOOTLOADER when not needed if [[ "$BOARD" == "multi4in1:avr:multiatmega328p:bootloader=none" ]]; then diff --git a/buildroot/bin/buildFunctions b/buildroot/bin/buildFunctions index c0a9c58..b144133 100644 --- a/buildroot/bin/buildFunctions +++ b/buildroot/bin/buildFunctions @@ -54,7 +54,6 @@ buildProtocol() { } buildEachProtocol() { - getAllProtocols; exitcodesum=0; for PROTOCOL in $ALL_PROTOCOLS ; do printf "\e[33;1mBuilding $PROTOCOL\e[0m\n"; @@ -74,7 +73,6 @@ buildRFModule() { } buildEachRFModule() { - getAllRFModules; exitcodesum=0; for RFMODULE in $ALL_RFMODULES; do printf "\e[33;1mBuilding $RFMODULE\e[0m\n"; diff --git a/buildroot/bin/build_release_avr_noboot b/buildroot/bin/build_release_avr_noboot index 010b697..448ba34 100644 --- a/buildroot/bin/build_release_avr_noboot +++ b/buildroot/bin/build_release_avr_noboot @@ -1,7 +1,6 @@ #!/usr/bin/env bash source ./buildroot/bin/buildFunctions; -getMultiVersion; exitcode=0; printf "\e[33;1mBuilding multi-avr-usbasp-aetr-A7105-inv-v$MULTI_VERSION.bin\e[0m\n"; @@ -15,8 +14,9 @@ mv build/Multiprotocol.ino.bin ./binaries/multi-avr-usbasp-aetr-A7105-inv-v$MULT printf "\e[33;1mBuilding multi-avr-usbasp-aetr-CC2500-inv-v$MULTI_VERSION.bin\e[0m\n"; opt_disable $ALL_PROTOCOLS; opt_enable $CC2500_PROTOCOLS; -opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO; +opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO OMP_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO; buildMulti; +exitcode=$((exitcode+$?)); mv build/Multiprotocol.ino.bin ./binaries/multi-avr-usbasp-aetr-CC2500-inv-v$MULTI_VERSION.bin; printf "\e[33;1mBuilding multi-avr-usbasp-aetr-CYRF6936-inv-v$MULTI_VERSION.bin\e[0m\n"; diff --git a/buildroot/bin/build_release_avr_optiboot b/buildroot/bin/build_release_avr_optiboot index 7f67f9c..a4b3ce4 100644 --- a/buildroot/bin/build_release_avr_optiboot +++ b/buildroot/bin/build_release_avr_optiboot @@ -1,7 +1,6 @@ #!/usr/bin/env bash source ./buildroot/bin/buildFunctions; -getMultiVersion; exitcode=0; printf "\e[33;1mBuilding multi-avr-txflash-aetr-A7105-inv-v$MULTI_VERSION.bin\e[0m\n"; @@ -15,7 +14,7 @@ mv build/Multiprotocol.ino.bin ./binaries/multi-avr-txflash-aetr-A7105-inv-v$MUL printf "\e[33;1mBuilding multi-avr-txflash-aetr-CC2500-inv-v$MULTI_VERSION.bin\e[0m\n"; opt_disable $ALL_PROTOCOLS; opt_enable $CC2500_PROTOCOLS; -opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO; +opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO OMP_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO; buildMulti; exitcode=$((exitcode+$?)); mv build/Multiprotocol.ino.bin ./binaries/multi-avr-txflash-aetr-CC2500-inv-v$MULTI_VERSION.bin; diff --git a/buildroot/bin/build_release_orx b/buildroot/bin/build_release_orx index ec6183b..ba70d65 100644 --- a/buildroot/bin/build_release_orx +++ b/buildroot/bin/build_release_orx @@ -1,7 +1,6 @@ #!/usr/bin/env bash source ./buildroot/bin/buildFunctions; -getMultiVersion; exitcode=0; printf "\e[33;1mBuilding multi-orangerx-aetr-green-inv-v$MULTI_VERSION.bin\e[0m\n"; diff --git a/buildroot/bin/build_release_stm32f1_native_debug b/buildroot/bin/build_release_stm32f1_native_debug index 8e1dc93..e1f8b6e 100644 --- a/buildroot/bin/build_release_stm32f1_native_debug +++ b/buildroot/bin/build_release_stm32f1_native_debug @@ -1,7 +1,6 @@ #!/usr/bin/env bash source ./buildroot/bin/buildFunctions; -getMultiVersion; exitcode=0; printf "\e[33;1mBuilding multi-stm-xn297dump-usbdebug-v$MULTI_VERSION.bin\e[0m\n"; diff --git a/buildroot/bin/build_release_stm32f1_no_debug b/buildroot/bin/build_release_stm32f1_no_debug index fe5559c..360e6d2 100644 --- a/buildroot/bin/build_release_stm32f1_no_debug +++ b/buildroot/bin/build_release_stm32f1_no_debug @@ -1,7 +1,6 @@ #!/usr/bin/env bash source ./buildroot/bin/buildFunctions; -getMultiVersion; exitcode=0; printf "\e[33;1mBuilding multi-stm-serial-aetr-v$MULTI_VERSION.bin\e[0m\n"; diff --git a/buildroot/bin/build_release_stm32f1_serial_debug b/buildroot/bin/build_release_stm32f1_serial_debug index 982291f..89e4055 100644 --- a/buildroot/bin/build_release_stm32f1_serial_debug +++ b/buildroot/bin/build_release_stm32f1_serial_debug @@ -1,7 +1,6 @@ #!/usr/bin/env bash source ./buildroot/bin/buildFunctions; -getMultiVersion; exitcode=0; printf "\e[33;1mBuilding multi-stm-xn297dump-ftdidebug-v$MULTI_VERSION.bin\e[0m\n"; diff --git a/buildroot/bin/build_release_stm32f1_t18int b/buildroot/bin/build_release_stm32f1_t18int index b669b66..c665b26 100644 --- a/buildroot/bin/build_release_stm32f1_t18int +++ b/buildroot/bin/build_release_stm32f1_t18int @@ -1,7 +1,6 @@ #!/usr/bin/env bash source ./buildroot/bin/buildFunctions; -getMultiVersion; exitcode=0; printf "\e[33;1mBuilding multi-t18int-aetr-v$MULTI_VERSION.bin\e[0m\n";