Skip to content

Commit 0195384

Browse files
authored
Merge pull request #486 from benlye/actions-3
Various fixes for CI workflow
2 parents b943bae + 0937f83 commit 0195384

File tree

9 files changed

+22
-12
lines changed

9 files changed

+22
-12
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ on:
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
@@ -86,8 +90,22 @@ jobs:
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/

buildroot/bin/buildFunctions

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ buildProtocol() {
5454
}
5555

5656
buildEachProtocol() {
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

7675
buildEachRFModule() {
77-
getAllRFModules;
7876
exitcodesum=0;
7977
for RFMODULE in $ALL_RFMODULES; do
8078
printf "\e[33;1mBuilding $RFMODULE\e[0m\n";

buildroot/bin/build_release_avr_noboot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
source ./buildroot/bin/buildFunctions;
4-
getMultiVersion;
54
exitcode=0;
65

76
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
1514
printf "\e[33;1mBuilding multi-avr-usbasp-aetr-CC2500-inv-v$MULTI_VERSION.bin\e[0m\n";
1615
opt_disable $ALL_PROTOCOLS;
1716
opt_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;
1918
buildMulti;
19+
exitcode=$((exitcode+$?));
2020
mv build/Multiprotocol.ino.bin ./binaries/multi-avr-usbasp-aetr-CC2500-inv-v$MULTI_VERSION.bin;
2121

2222
printf "\e[33;1mBuilding multi-avr-usbasp-aetr-CYRF6936-inv-v$MULTI_VERSION.bin\e[0m\n";

buildroot/bin/build_release_avr_optiboot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
source ./buildroot/bin/buildFunctions;
4-
getMultiVersion;
54
exitcode=0;
65

76
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
1514
printf "\e[33;1mBuilding multi-avr-txflash-aetr-CC2500-inv-v$MULTI_VERSION.bin\e[0m\n";
1615
opt_disable $ALL_PROTOCOLS;
1716
opt_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;
1918
buildMulti;
2019
exitcode=$((exitcode+$?));
2120
mv build/Multiprotocol.ino.bin ./binaries/multi-avr-txflash-aetr-CC2500-inv-v$MULTI_VERSION.bin;

buildroot/bin/build_release_orx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
source ./buildroot/bin/buildFunctions;
4-
getMultiVersion;
54
exitcode=0;
65

76
printf "\e[33;1mBuilding multi-orangerx-aetr-green-inv-v$MULTI_VERSION.bin\e[0m\n";

buildroot/bin/build_release_stm32f1_native_debug

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
source ./buildroot/bin/buildFunctions;
4-
getMultiVersion;
54
exitcode=0;
65

76
printf "\e[33;1mBuilding multi-stm-xn297dump-usbdebug-v$MULTI_VERSION.bin\e[0m\n";

buildroot/bin/build_release_stm32f1_no_debug

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
source ./buildroot/bin/buildFunctions;
4-
getMultiVersion;
54
exitcode=0;
65

76
printf "\e[33;1mBuilding multi-stm-serial-aetr-v$MULTI_VERSION.bin\e[0m\n";

buildroot/bin/build_release_stm32f1_serial_debug

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
source ./buildroot/bin/buildFunctions;
4-
getMultiVersion;
54
exitcode=0;
65

76
printf "\e[33;1mBuilding multi-stm-xn297dump-ftdidebug-v$MULTI_VERSION.bin\e[0m\n";

buildroot/bin/build_release_stm32f1_t18int

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
source ./buildroot/bin/buildFunctions;
4-
getMultiVersion;
54
exitcode=0;
65

76
printf "\e[33;1mBuilding multi-t18int-aetr-v$MULTI_VERSION.bin\e[0m\n";

0 commit comments

Comments
 (0)