File tree Expand file tree Collapse file tree 9 files changed +22
-12
lines changed
Expand file tree Collapse file tree 9 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1010 tags-ignore :
1111 - ' **'
1212 paths :
13+ - ' .github/workflows/**'
14+ - ' buildroot/bin/**'
1315 - ' Multiprotocol/**'
1416
1517 # Trigger the workflow on pull requests to the master branch
1618 pull_request :
1719 branches :
1820 - master
1921 paths :
22+ - ' .github/workflows/**'
23+ - ' buildroot/bin/**'
2024 - ' Multiprotocol/**'
2125
2226 # Triggers the workflow on release creation
8690 # Load the build functions
8791 source ./buildroot/bin/buildFunctions;
8892
93+ # Get the version
94+ getMultiVersion
95+ echo "MULTI_VERSION=$(echo $MULTI_VERSION)" >> $GITHUB_ENV
96+
8997 # Get all the protocols for this board
9098 getAllProtocols
99+ echo "A7105_PROTOCOLS=$(echo $A7105_PROTOCOLS)" >> $GITHUB_ENV
100+ echo "CC2500_PROTOCOLS=$(echo $CC2500_PROTOCOLS)" >> $GITHUB_ENV
101+ echo "CYRF6936_PROTOCOLS=$(echo $CYRF6936_PROTOCOLS)" >> $GITHUB_ENV
102+ echo "NRF24L01_PROTOCOLS=$(echo $NRF24L01_PROTOCOLS)" >> $GITHUB_ENV
103+ echo "SX1276_PROTOCOLS=$(echo $SX1276_PROTOCOLS)" >> $GITHUB_ENV
104+ echo "ALL_PROTOCOLS=$(echo $ALL_PROTOCOLS)" >> $GITHUB_ENV
105+
106+ # Get all the RF modules for this board
107+ getAllRFModules
108+ echo "ALL_RFMODULES=$(echo $ALL_RFMODULES)" >> $GITHUB_ENV
91109
92110 # Disable CHECK_FOR_BOOTLOADER when not needed
93111 if [[ "$BOARD" == "multi4in1:avr:multiatmega328p:bootloader=none" ]]; then
@@ -167,5 +185,5 @@ jobs:
167185 if : env.HAVE_FILES == 'true'
168186 uses : actions/upload-artifact@v2
169187 with :
170- name : build-artifacts
188+ name : multi-test-build
171189 path : ./binaries/
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ buildProtocol() {
5454}
5555
5656buildEachProtocol () {
57- getAllProtocols;
5857 exitcodesum=0;
5958 for PROTOCOL in $ALL_PROTOCOLS ; do
6059 printf " \e[33;1mBuilding $PROTOCOL \e[0m\n" ;
@@ -74,7 +73,6 @@ buildRFModule() {
7473}
7574
7675buildEachRFModule () {
77- getAllRFModules;
7876 exitcodesum=0;
7977 for RFMODULE in $ALL_RFMODULES ; do
8078 printf " \e[33;1mBuilding $RFMODULE \e[0m\n" ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source ./buildroot/bin/buildFunctions;
4- getMultiVersion;
54exitcode=0;
65
76printf " \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
1514printf " \e[33;1mBuilding multi-avr-usbasp-aetr-CC2500-inv-v$MULTI_VERSION .bin\e[0m\n" ;
1615opt_disable $ALL_PROTOCOLS ;
1716opt_enable $CC2500_PROTOCOLS ;
18- opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO;
17+ opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO OMP_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO;
1918buildMulti;
19+ exitcode=$(( exitcode+ $? )) ;
2020mv build/Multiprotocol.ino.bin ./binaries/multi-avr-usbasp-aetr-CC2500-inv-v$MULTI_VERSION .bin;
2121
2222printf " \e[33;1mBuilding multi-avr-usbasp-aetr-CYRF6936-inv-v$MULTI_VERSION .bin\e[0m\n" ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source ./buildroot/bin/buildFunctions;
4- getMultiVersion;
54exitcode=0;
65
76printf " \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
1514printf " \e[33;1mBuilding multi-avr-txflash-aetr-CC2500-inv-v$MULTI_VERSION .bin\e[0m\n" ;
1615opt_disable $ALL_PROTOCOLS ;
1716opt_enable $CC2500_PROTOCOLS ;
18- opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO;
17+ opt_disable HITEC_CC2500_INO REDPINE_CC2500_INO OMP_CC2500_INO SKYARTEC_CC2500_INO SCANNER_CC2500_INO;
1918buildMulti;
2019exitcode=$(( exitcode+ $? )) ;
2120mv build/Multiprotocol.ino.bin ./binaries/multi-avr-txflash-aetr-CC2500-inv-v$MULTI_VERSION .bin;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source ./buildroot/bin/buildFunctions;
4- getMultiVersion;
54exitcode=0;
65
76printf " \e[33;1mBuilding multi-orangerx-aetr-green-inv-v$MULTI_VERSION .bin\e[0m\n" ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source ./buildroot/bin/buildFunctions;
4- getMultiVersion;
54exitcode=0;
65
76printf " \e[33;1mBuilding multi-stm-xn297dump-usbdebug-v$MULTI_VERSION .bin\e[0m\n" ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source ./buildroot/bin/buildFunctions;
4- getMultiVersion;
54exitcode=0;
65
76printf " \e[33;1mBuilding multi-stm-serial-aetr-v$MULTI_VERSION .bin\e[0m\n" ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source ./buildroot/bin/buildFunctions;
4- getMultiVersion;
54exitcode=0;
65
76printf " \e[33;1mBuilding multi-stm-xn297dump-ftdidebug-v$MULTI_VERSION .bin\e[0m\n" ;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33source ./buildroot/bin/buildFunctions;
4- getMultiVersion;
54exitcode=0;
65
76printf " \e[33;1mBuilding multi-t18int-aetr-v$MULTI_VERSION .bin\e[0m\n" ;
You can’t perform that action at this time.
0 commit comments