Skip to content

Commit 8777f6d

Browse files
committed
Update GitHub Actions workflows and docs build
- Modify conditions for running jobs in builder workflows - Expand triggers for CIBB jobs to include all pushes - Restrict CICTB and CINTB jobs to run only on push events - Remove pull_request trigger from docs.yml workflow
1 parent a8bc762 commit 8777f6d

File tree

5 files changed

+28
-34
lines changed

5 files changed

+28
-34
lines changed

.github/workflows/builder_0_1.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ 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' && contains(github.event.head_commit.message, '[DEBUG]')))
90+
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push'))
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
@@ -121,18 +121,18 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success()
124+
if: success() && github.event_name == 'push'
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()
131+
if: success() && github.event_name == 'push'
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()
135+
if: success() && github.event_name == 'push'
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success()
169+
if: success() && github.event_name == 'push'
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()
176+
if: success() && github.event_name == 'push'
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()
180+
if: success() && github.event_name == 'push'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

.github/workflows/builder_2_3.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ 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' && contains(github.event.head_commit.message, '[DEBUG]')))
90+
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push'))
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
@@ -121,18 +121,18 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success()
124+
if: success() && github.event_name == 'push'
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()
131+
if: success() && github.event_name == 'push'
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()
135+
if: success() && github.event_name == 'push'
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success()
169+
if: success() && github.event_name == 'push'
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()
176+
if: success() && github.event_name == 'push'
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()
180+
if: success() && github.event_name == 'push'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

.github/workflows/builder_3_plus.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ 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' && contains(github.event.head_commit.message, '[DEBUG]')))
90+
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push'))
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
@@ -121,18 +121,18 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success()
124+
if: success() && github.event_name == 'push'
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()
131+
if: success() && github.event_name == 'push'
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()
135+
if: success() && github.event_name == 'push'
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success()
169+
if: success() && github.event_name == 'push'
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()
176+
if: success() && github.event_name == 'push'
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()
180+
if: success() && github.event_name == 'push'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

.github/workflows/builder_64.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ 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' && contains(github.event.head_commit.message, '[DEBUG]')))
90+
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'push'))
9191
- name: before_script
9292
run: bash patches/curl_stfp_patcher
9393
shell: bash
@@ -121,18 +121,18 @@ jobs:
121121
chmod +x patches/curl_stfp_patcher
122122
dos2unix utils/SF_deployer
123123
chmod +x utils/SF_deployer
124-
if: success()
124+
if: success() && github.event_name == 'push'
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()
131+
if: success() && github.event_name == 'push'
132132
- name: script
133133
run: bash build-scripts/CI/CICTB_64b -g $GCC_VERSION -o $RPIOS_TYPE
134134
shell: bash
135-
if: success()
135+
if: success() && github.event_name == 'push'
136136
- name: before_script
137137
run: bash patches/curl_stfp_patcher
138138
shell: bash
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success()
169+
if: success() && github.event_name == 'push'
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()
176+
if: success() && github.event_name == 'push'
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_64b -g $GCC_VERSION -o $RPIOS_TYPE
179179
shell: bash
180-
if: success()
180+
if: success() && github.event_name == 'push'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

.github/workflows/docs.yml

-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ on:
3232
paths:
3333
- '**.md'
3434
- '**.yml'
35-
pull_request:
36-
branches:
37-
- master
38-
paths:
39-
- '**.md'
40-
- '**.yml'
4135
release:
4236
branches:
4337
- master

0 commit comments

Comments
 (0)