Skip to content

Commit 727c3fe

Browse files
committed
Refactor CI workflows for improved release and debug builds
- Simplify conditional checks for job steps - Enable cross and native builder jobs for releases and debug pushes - Remove redundant checks for 'published' action on releases - Standardize deployment conditions across all workflows - Update docs.yml to trigger only on pushes to master branch
1 parent 05a5e77 commit 727c3fe

File tree

6 files changed

+63
-63
lines changed

6 files changed

+63
-63
lines changed

.github/workflows/builder_0_1.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ jobs:
8787
- name: script
8888
run: bash build-scripts/CI/CIBB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
8989
shell: bash
90-
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push')
90+
if: success()
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release' && github.event.action == 'published'
94+
if: success() && github.event_name == 'release'
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release' && github.event.action == 'published'
98+
if: success() && github.event_name == 'release'
9999

100100
builder-cross:
101101
name: Cross GCC 32-bit Builder Pi[0-1]
@@ -121,26 +121,26 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success() && github.event_name == 'push'
124+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
125125
- name: install
126126
run: |
127127
sudo apt-get -y install -qq gcc g++ gperf flex texinfo git pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
128128
sudo /usr/sbin/update-ccache-symlinks
129129
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
130130
source ~/.bashrc && echo $PATH
131-
if: success() && github.event_name == 'push'
131+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
132132
- name: script
133133
run: bash build-scripts/CI/CICTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
134134
shell: bash
135-
if: success() && github.event_name == 'push'
135+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
139-
if: success() && github.event_name == 'release' && github.event.action == 'published'
139+
if: success() && github.event_name == 'release'
140140
- name: deploy
141141
run: bash utils/SF_deployer
142142
shell: bash
143-
if: success() && github.event_name == 'release' && github.event.action == 'published'
143+
if: success() && github.event_name == 'release'
144144

145145
builder-native:
146146
name: Native GCC 32-bit Builder Pi[0-1]
@@ -166,23 +166,23 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'release' && github.event.action == 'published'
169+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex git texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'release' && github.event.action == 'published'
176+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'release' && github.event.action == 'published'
180+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash
184-
if: success() && github.event_name == 'release' && github.event.action == 'published'
184+
if: success() && github.event_name == 'release'
185185
- name: deploy
186186
run: bash utils/SF_deployer
187187
shell: bash
188-
if: success() && github.event_name == 'release' && github.event.action == 'published'
188+
if: success() && github.event_name == 'release'

.github/workflows/builder_2_3.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ jobs:
8787
- name: script
8888
run: bash build-scripts/CI/CIBB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
8989
shell: bash
90-
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push')
90+
if: success()
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release' && github.event.action == 'published'
94+
if: success() && github.event_name == 'release'
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release' && github.event.action == 'published'
98+
if: success() && github.event_name == 'release'
9999

100100
builder-cross:
101101
name: Cross GCC 32-bit Builder Pi[2-3]
@@ -121,26 +121,26 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success() && github.event_name == 'push'
124+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
125125
- name: install
126126
run: |
127127
sudo apt-get -y install -qq gcc g++ gperf flex git texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
128128
sudo /usr/sbin/update-ccache-symlinks
129129
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
130130
source ~/.bashrc && echo $PATH
131-
if: success() && github.event_name == 'push'
131+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
132132
- name: script
133133
run: bash build-scripts/CI/CICTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
134134
shell: bash
135-
if: success() && github.event_name == 'push'
135+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
139-
if: success() && github.event_name == 'release' && github.event.action == 'published'
139+
if: success() && github.event_name == 'release'
140140
- name: deploy
141141
run: bash utils/SF_deployer
142142
shell: bash
143-
if: success() && github.event_name == 'release' && github.event.action == 'published'
143+
if: success() && github.event_name == 'release'
144144

145145
builder-native:
146146
name: Native GCC 32-bit Builder Pi[2-3]
@@ -166,23 +166,23 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'release' && github.event.action == 'published'
169+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex git texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'release' && github.event.action == 'published'
176+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'release' && github.event.action == 'published'
180+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash
184-
if: success() && github.event_name == 'release' && github.event.action == 'published'
184+
if: success() && github.event_name == 'release'
185185
- name: deploy
186186
run: bash utils/SF_deployer
187187
shell: bash
188-
if: success() && github.event_name == 'release' && github.event.action == 'published'
188+
if: success() && github.event_name == 'release'

.github/workflows/builder_3_plus.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ jobs:
8787
- name: script
8888
run: bash build-scripts/CI/CIBB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
8989
shell: bash
90-
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push')
90+
if: success()
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release' && github.event.action == 'published'
94+
if: success() && github.event_name == 'release'
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release' && github.event.action == 'published'
98+
if: success() && github.event_name == 'release'
9999

100100
builder-cross:
101101
name: Cross GCC 32-bit Builder Pi[3+]
@@ -121,26 +121,26 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success() && github.event_name == 'push'
124+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
125125
- name: install
126126
run: |
127127
sudo apt-get -y install -qq gcc g++ gperf flex texinfo git pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
128128
sudo /usr/sbin/update-ccache-symlinks
129129
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
130130
source ~/.bashrc && echo $PATH
131-
if: success() && github.event_name == 'push'
131+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
132132
- name: script
133133
run: bash build-scripts/CI/CICTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
134134
shell: bash
135-
if: success() && github.event_name == 'push'
135+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
139-
if: success() && github.event_name == 'release' && github.event.action == 'published'
139+
if: success() && github.event_name == 'release'
140140
- name: deploy
141141
run: bash utils/SF_deployer
142142
shell: bash
143-
if: success() && github.event_name == 'release' && github.event.action == 'published'
143+
if: success() && github.event_name == 'release'
144144

145145
builder-native:
146146
name: Native GCC 32-bit Builder Pi[3+]
@@ -166,24 +166,24 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'release' && github.event.action == 'published'
169+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex texinfo git pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'release' && github.event.action == 'published'
176+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'release' && github.event.action == 'published'
180+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash
184-
if: success() && github.event_name == 'release' && github.event.action == 'published'
184+
if: success() && github.event_name == 'release'
185185
- name: deploy
186186
run: bash utils/SF_deployer
187187
shell: bash
188-
if: success() && github.event_name == 'release' && github.event.action == 'published'
188+
if: success() && github.event_name == 'release'
189189

.github/workflows/builder_64.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ jobs:
8787
- name: script
8888
run: bash build-scripts/CI/CIBB_64b -g $GCC_VERSION -o $RPIOS_TYPE
8989
shell: bash
90-
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push')
90+
if: success()
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
94-
if: success() && github.event_name == 'release' && github.event.action == 'published'
94+
if: success() && github.event_name == 'release'
9595
- name: deploy
9696
run: bash utils/SF_deployer
9797
shell: bash
98-
if: success() && github.event_name == 'release' && github.event.action == 'published'
98+
if: success() && github.event_name == 'release'
9999

100100
builder-cross:
101101
name: Cross GCC 64-bit Builder Pi[64]
@@ -121,26 +121,26 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success() && github.event_name == 'push'
124+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
125125
- name: install
126126
run: |
127127
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk git gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
128128
sudo /usr/sbin/update-ccache-symlinks
129129
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
130130
source ~/.bashrc && echo $PATH
131-
if: success() && github.event_name == 'push'
131+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
132132
- name: script
133133
run: bash build-scripts/CI/CICTB_64b -g $GCC_VERSION -o $RPIOS_TYPE
134134
shell: bash
135-
if: success() && github.event_name == 'push'
135+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
139-
if: success() && github.event_name == 'release' && github.event.action == 'published'
139+
if: success() && github.event_name == 'release'
140140
- name: deploy
141141
run: bash utils/SF_deployer
142142
shell: bash
143-
if: success() && github.event_name == 'release' && github.event.action == 'published'
143+
if: success() && github.event_name == 'release'
144144

145145
builder-native:
146146
name: Native GCC 64-bit Builder Pi[64]
@@ -166,23 +166,23 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'release' && github.event.action == 'published'
169+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk git gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'release' && github.event.action == 'published'
176+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_64b -g $GCC_VERSION -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'release' && github.event.action == 'published'
180+
if: success() && (github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash
184-
if: success() && github.event_name == 'release' && github.event.action == 'published'
184+
if: success() && github.event_name == 'release'
185185
- name: deploy
186186
run: bash utils/SF_deployer
187187
shell: bash
188-
if: success() && github.event_name == 'release' && github.event.action == 'published'
188+
if: success() && github.event_name == 'release'

0 commit comments

Comments
 (0)