Skip to content

Commit 934456c

Browse files
authored
Release v3.0.2 (#42)
- Added new GCC v10.1.0 to build matrix. (fixes #40) - Merged build jobs into compact form using GitHub Action strategy matrices. (fixes #41) - Re-implemented & improved various jobs build logics. - Updated CI Base Builder jobs to deploy on publishing. - Added support for recently released GCC v8.4.0 in build scripts. - Removed GCC v9.2.0 from Native 32-bit and all 64-bit build matrices(Soon be depreciated). - Updated project docs with new changes.
2 parents 5a9126d + 5fb7752 commit 934456c

20 files changed

+294
-964
lines changed

.github/workflows/builder_0_1.yml

+31-229
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ on:
3838
branches:
3939
- master
4040

41-
42-
4341
env:
42+
RPI_TYPE: 0-1
4443
CURL_VERSION: 7.68.0
4544
CCACHE_COMPRESS: 1
4645
CCACHE_DIR: $HOME/.ccache
4746
USER_SFTP: ${{ secrets.USER_SFTP }}
4847
PASSWORD_SFTP: ${{ secrets.PASSWORD_SFTP }}
4948

5049
jobs:
51-
builder-buster_0:
52-
name: BASE GCC-8.3.0 32-bit Buster Pi[0-1]
50+
builder-base:
51+
name: Base GCC 32-bit Builder Pi[0-1]
5352
runs-on: ubuntu-latest
53+
strategy:
54+
matrix:
55+
rpios_types: [stretch, buster]
5456
env:
55-
GCC_VERSION: 8.3.0
56-
RPIOS_TYPE: buster
57-
RPI_TYPE: 0-1
57+
RPIOS_TYPE: ${{ matrix.rpios_types }}
5858
COMPILER_TYPE: CROSS
5959
BASE: true
6060
steps:
@@ -80,7 +80,7 @@ jobs:
8080
source ~/.bashrc && echo $PATH
8181
if: success()
8282
- name: script
83-
run: bash build-scripts/CI/CIBB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
83+
run: bash build-scripts/CI/CIBB_32b -r $RPI_TYPE -o $RPIOS_TYPE
8484
shell: bash
8585
if: success() && github.event_name == 'pull_request'
8686
- name: before_script
@@ -92,19 +92,23 @@ jobs:
9292
cp docs/base-gcc.md $HOME/README.md
9393
bash utils/SF_docs_deployer
9494
shell: bash
95-
if: success() && github.event_name == 'push'
95+
if: success() && github.event_name == 'release'
9696
- name: deploy
9797
run: bash utils/SF_deployer
9898
shell: bash
9999
if: success() && github.event_name == 'release' && github.event.action == 'published'
100-
builder-buster_1:
101-
name: Cross GCC-9.3.0 32-bit Buster Pi[0-1]
102-
needs: builder-buster_0
100+
101+
builder-cross:
102+
name: Cross GCC 32-bit Builder Pi[0-1]
103+
needs: builder-base
103104
runs-on: ubuntu-latest
105+
strategy:
106+
matrix:
107+
gcc_versions: [6.3.0, 8.3.0, 9.2.0, 9.3.0, 10.1.0]
108+
rpios_types: [stretch, buster]
104109
env:
105-
GCC_VERSION: 9.3.0
106-
RPIOS_TYPE: buster
107-
RPI_TYPE: 0-1
110+
GCC_VERSION: ${{ matrix.gcc_versions }}
111+
RPIOS_TYPE: ${{ matrix.rpios_types }}
108112
COMPILER_TYPE: CROSS
109113
steps:
110114
- uses: actions/checkout@v2
@@ -142,60 +146,23 @@ jobs:
142146
cp docs/cross-gcc.md $HOME/root/README.md
143147
bash utils/SF_docs_deployer
144148
shell: bash
145-
if: success() && github.event_name == 'push'
149+
if: success() && github.event_name == 'release'
146150
- name: deploy
147151
run: bash utils/SF_deployer
148152
shell: bash
149153
if: success() && github.event_name == 'release' && github.event.action == 'published'
150-
builder-buster_1_1:
151-
name: Cross GCC-8.3.0 32-bit Buster Pi[0-1]
152-
needs: builder-buster_0
153-
runs-on: ubuntu-latest
154-
env:
155-
GCC_VERSION: 8.3.0
156-
RPIOS_TYPE: buster
157-
RPI_TYPE: 0-1
158-
COMPILER_TYPE: CROSS
159-
steps:
160-
- uses: actions/checkout@v2
161-
- name: before_install
162-
run: |
163-
sudo apt-get update -qq
164-
sudo apt-get install -qq dos2unix -y
165-
dos2unix build-scripts/CI/CICTB_32b
166-
chmod +x build-scripts/CI/CICTB_32b
167-
dos2unix patches/curl_stfp_patcher
168-
chmod +x patches/curl_stfp_patcher
169-
dos2unix utils/SF_deployer
170-
chmod +x utils/SF_deployer
171-
if: success()
172-
- name: install
173-
run: |
174-
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl3 unzip wget
175-
sudo /usr/sbin/update-ccache-symlinks
176-
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
177-
source ~/.bashrc && echo $PATH
178-
if: success()
179-
- name: script
180-
run: bash build-scripts/CI/CICTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
181-
shell: bash
182-
if: success()
183-
- name: before_script
184-
run: bash patches/curl_stfp_patcher
185-
shell: bash
186-
if: success()
187-
- name: deploy
188-
run: bash utils/SF_deployer
189-
shell: bash
190-
if: success() && github.event_name == 'release' && github.event.action == 'published'
191-
builder-buster_2:
192-
name: Native GCC-9.3.0 32-bit Buster Pi[0-1]
193-
needs: [builder-buster_0, builder-buster_1]
154+
155+
builder-native:
156+
name: Native GCC 32-bit Builder Pi[0-1]
157+
needs: [builder-base, builder-cross]
194158
runs-on: ubuntu-latest
159+
strategy:
160+
matrix:
161+
gcc_versions: [9.3.0, 10.1.0]
162+
rpios_types: [stretch, buster]
195163
env:
196-
GCC_VERSION: 9.3.0
197-
RPIOS_TYPE: buster
198-
RPI_TYPE: 0-1
164+
GCC_VERSION: ${{ matrix.gcc_versions }}
165+
RPIOS_TYPE: ${{ matrix.rpios_types }}
199166
COMPILER_TYPE: NATIVE
200167
steps:
201168
- uses: actions/checkout@v2
@@ -233,173 +200,8 @@ jobs:
233200
cp docs/native-gcc.md $HOME/root/README.md
234201
bash utils/SF_docs_deployer
235202
shell: bash
236-
if: success() && github.event_name == 'push'
237-
- name: deploy
238-
run: bash utils/SF_deployer
239-
shell: bash
240-
if: success() && github.event_name == 'release' && github.event.action == 'published'
241-
242-
builder-stretch_0:
243-
name: BASE GCC-6.3.0 32-bit Stretch Pi[0-1]
244-
runs-on: ubuntu-latest
245-
env:
246-
GCC_VERSION: 6.3.0
247-
RPIOS_TYPE: stretch
248-
RPI_TYPE: 0-1
249-
COMPILER_TYPE: CROSS
250-
BASE: true
251-
steps:
252-
- uses: actions/checkout@v2
253-
- name: before_install
254-
run: |
255-
sudo apt-get update -qq
256-
sudo apt-get install -qq dos2unix -y
257-
dos2unix build-scripts/CI/CIBB_32b
258-
chmod +x build-scripts/CI/CIBB_32b
259-
dos2unix patches/curl_stfp_patcher
260-
chmod +x patches/curl_stfp_patcher
261-
dos2unix utils/SF_deployer
262-
chmod +x utils/SF_deployer
263-
if: success()
264-
- name: install
265-
run: |
266-
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl3 unzip wget
267-
sudo /usr/sbin/update-ccache-symlinks
268-
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
269-
source ~/.bashrc && echo $PATH
270-
if: success()
271-
- name: script
272-
run: bash build-scripts/CI/CIBB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
273-
shell: bash
274-
if: success() && github.event_name == 'pull_request'
275-
- name: before_script
276-
run: bash patches/curl_stfp_patcher
277-
shell: bash
278-
if: success()
203+
if: success() && github.event_name == 'release'
279204
- name: deploy
280205
run: bash utils/SF_deployer
281206
shell: bash
282207
if: success() && github.event_name == 'release' && github.event.action == 'published'
283-
builder-stretch_1:
284-
name: Cross GCC-9.3.0 32-bit Stretch Pi[0-1]
285-
needs: builder-stretch_0
286-
runs-on: ubuntu-latest
287-
env:
288-
GCC_VERSION: 9.3.0
289-
RPIOS_TYPE: stretch
290-
RPI_TYPE: 0-1
291-
COMPILER_TYPE: CROSS
292-
steps:
293-
- uses: actions/checkout@v2
294-
- name: before_install
295-
run: |
296-
sudo apt-get update -qq
297-
sudo apt-get install -qq dos2unix -y
298-
dos2unix build-scripts/CI/CICTB_32b
299-
chmod +x build-scripts/CI/CICTB_32b
300-
dos2unix patches/curl_stfp_patcher
301-
chmod +x patches/curl_stfp_patcher
302-
dos2unix utils/SF_deployer
303-
chmod +x utils/SF_deployer
304-
if: success()
305-
- name: install
306-
run: |
307-
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl3 unzip wget
308-
sudo /usr/sbin/update-ccache-symlinks
309-
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
310-
source ~/.bashrc && echo $PATH
311-
if: success()
312-
- name: script
313-
run: bash build-scripts/CI/CICTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
314-
shell: bash
315-
if: success()
316-
- name: before_script
317-
run: bash patches/curl_stfp_patcher
318-
shell: bash
319-
if: success()
320-
- name: deploy
321-
run: bash utils/SF_deployer
322-
shell: bash
323-
if: success() && github.event_name == 'release' && github.event.action == 'published'
324-
builder-stretch_1_1:
325-
name: Cross GCC-6.3.0 32-bit Stretch Pi[0-1]
326-
needs: builder-stretch_0
327-
runs-on: ubuntu-latest
328-
env:
329-
GCC_VERSION: 6.3.0
330-
RPIOS_TYPE: stretch
331-
RPI_TYPE: 0-1
332-
COMPILER_TYPE: CROSS
333-
steps:
334-
- uses: actions/checkout@v2
335-
- name: before_install
336-
run: |
337-
sudo apt-get update -qq
338-
sudo apt-get install -qq dos2unix -y
339-
dos2unix build-scripts/CI/CICTB_32b
340-
chmod +x build-scripts/CI/CICTB_32b
341-
dos2unix patches/curl_stfp_patcher
342-
chmod +x patches/curl_stfp_patcher
343-
dos2unix utils/SF_deployer
344-
chmod +x utils/SF_deployer
345-
if: success()
346-
- name: install
347-
run: |
348-
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl3 unzip wget
349-
sudo /usr/sbin/update-ccache-symlinks
350-
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
351-
source ~/.bashrc && echo $PATH
352-
if: success()
353-
- name: script
354-
run: bash build-scripts/CI/CICTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
355-
shell: bash
356-
if: success()
357-
- name: before_script
358-
run: bash patches/curl_stfp_patcher
359-
shell: bash
360-
if: success()
361-
- name: deploy
362-
run: bash utils/SF_deployer
363-
shell: bash
364-
if: success() && github.event_name == 'release' && github.event.action == 'published'
365-
builder-stretch_2:
366-
name: Native GCC-9.3.0 32-bit Stretch Pi[0-1]
367-
needs: [builder-stretch_0, builder-stretch_1]
368-
runs-on: ubuntu-latest
369-
env:
370-
GCC_VERSION: 9.3.0
371-
RPIOS_TYPE: stretch
372-
RPI_TYPE: 0-1
373-
COMPILER_TYPE: NATIVE
374-
steps:
375-
- uses: actions/checkout@v2
376-
- name: before_install
377-
run: |
378-
sudo apt-get update -qq
379-
sudo apt-get install -qq dos2unix -y
380-
dos2unix build-scripts/CI/CINTB_32b
381-
chmod +x build-scripts/CI/CINTB_32b
382-
dos2unix patches/curl_stfp_patcher
383-
chmod +x patches/curl_stfp_patcher
384-
dos2unix utils/SF_deployer
385-
chmod +x utils/SF_deployer
386-
if: success()
387-
- name: install
388-
run: |
389-
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl3 unzip wget
390-
sudo /usr/sbin/update-ccache-symlinks
391-
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
392-
source ~/.bashrc && echo $PATH
393-
if: success()
394-
- name: script
395-
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
396-
shell: bash
397-
if: success()
398-
- name: before_script
399-
run: bash patches/curl_stfp_patcher
400-
shell: bash
401-
if: success()
402-
- name: deploy
403-
run: bash utils/SF_deployer
404-
shell: bash
405-
if: success() && github.event_name == 'release' && github.event.action == 'published'

0 commit comments

Comments
 (0)