Skip to content

Commit 68cb065

Browse files
committed
[DEBUG] Refactored GitHub Action workflows
1 parent d6d2708 commit 68cb065

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

.github/workflows/builder_0_1.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ jobs:
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release'
94+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release'
98+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9999

100100
builder-cross:
101101
name: Cross GCC 32-bit Builder Pi[0-1]

.github/workflows/builder_2_3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ jobs:
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release'
94+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release'
98+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9999

100100
builder-cross:
101101
name: Cross GCC 32-bit Builder Pi[2-3]

.github/workflows/builder_3_plus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ jobs:
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release'
94+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release'
98+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9999

100100
builder-cross:
101101
name: Cross GCC 32-bit Builder Pi[3+]

.github/workflows/builder_64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ jobs:
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release'
94+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release'
98+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
9999

100100
builder-cross:
101101
name: Cross GCC 64-bit Builder Pi[64]

build-scripts/CI/CICTB_32b

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ mkdir -p "$INSTALLDIR"
191191
cd "$DOWNLOADDIR" || exit
192192

193193
if [ ! -f "cross-gcc-$GCCBASE_VERSION-pi_$RPI_TYPE.tar.gz" ]; then
194-
wget -q --no-check-certificate "${URL}cross-gcc-$GCCBASE_VERSION-pi_$RPI_TYPE.tar.gz"
194+
FILEURL = "${URL}cross-gcc-$GCCBASE_VERSION-pi_$RPI_TYPE.tar.gz"
195+
echo "Downloading File: $FILEURL"
196+
wget -q --no-check-certificate "$FILEURL"
195197
tar xf cross-gcc-$GCCBASE_VERSION-pi_$RPI_TYPE.tar.gz
196198
mv -v cross-pi-gcc-$GCCBASE_VERSION-$FOLDER_VERSION/* $INSTALLDIR
197199
rm -rf cross-pi-gcc-$GCCBASE_VERSION-$FOLDER_VERSION

build-scripts/CI/CICTB_64b

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ cd "$DOWNLOADDIR" || exit
146146

147147
#download binaries if not found
148148
if [ ! -f "cross-gcc-$GCCBASE_VERSION-pi_$FOLDER_VERSION.tar.gz" ]; then
149-
wget -q --no-check-certificate "${URL}cross-gcc-$GCCBASE_VERSION-pi_$FOLDER_VERSION.tar.gz"
149+
FILEURL = "${URL}cross-gcc-$GCCBASE_VERSION-pi_$FOLDER_VERSION.tar.gz"
150+
echo "Downloading File: $FILEURL"
151+
wget -q --no-check-certificate "$FILEURL"
150152
tar xf cross-gcc-$GCCBASE_VERSION-pi_$FOLDER_VERSION.tar.gz
151153
mv -v cross-pi-gcc-$GCCBASE_VERSION-$FOLDER_VERSION/* $INSTALLDIR
152154
rm -rf cross-pi-gcc-$GCCBASE_VERSION-$FOLDER_VERSION

0 commit comments

Comments
 (0)