-
-
Notifications
You must be signed in to change notification settings - Fork 104
188 lines (176 loc) · 6.91 KB
/
builder_0_1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# ===============================================
# Raspberry Pi Toolchains(raspberry-pi-cross-compilers): This project
# provides latest automated GCC Cross Compiler & Native (ARM & ARM64)
# build-scripts and precompiled standalone toolchains for Raspberry Pi.
# Copyright (C) 2020 Abhishek Thakur(@abhiTronix) <[email protected]>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# ===============================================
name: CI Builder Pi[0-1]
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
release:
branches:
- master
types: [published]
paths-ignore:
- '**.md'
env:
RPI_TYPE: 0-1
CURL_VERSION: 8.9.1
CCACHE_COMPRESS: 1
CCACHE_DIR: $HOME/.ccache
USER_SFTP: ${{ secrets.USER_SFTP }}
PASSWORD_SFTP: ${{ secrets.PASSWORD_SFTP }}
jobs:
builder-base:
name: Base GCC 32-bit Builder Pi[0-1]
runs-on: ubuntu-20.04
strategy:
matrix:
gcc_versions: [8.3.0, 10.2.0, 12.2.0]
rpios_types: [buster, bullseye, bookworm]
env:
RPIOS_TYPE: ${{ matrix.rpios_types }}
GCC_VERSION: ${{ matrix.gcc_versions }}
COMPILER_TYPE: CROSS
BASE: true
steps:
- uses: actions/checkout@v4
- name: before_install
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix -y
dos2unix build-scripts/CI/CIBB_32b
chmod +x build-scripts/CI/CIBB_32b
dos2unix patches/curl_stfp_patcher
chmod +x patches/curl_stfp_patcher
dos2unix utils/SF_deployer
chmod +x utils/SF_deployer
if: success()
- name: install
run: |
sudo apt-get -y install -qq gcc g++ gperf git flex 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
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc && echo $PATH
if: success()
- name: script
run: bash build-scripts/CI/CIBB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
shell: bash
if: success() && (github.event_name == 'pull_request' || github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')))
- name: before_script
run: bash patches/curl_stfp_patcher
shell: bash
if: success() && github.event_name == 'release' && github.event.action == 'published'
- name: deploy
run: bash utils/SF_deployer
shell: bash
if: success() && github.event_name == 'release' && github.event.action == 'published'
builder-cross:
name: Cross GCC 32-bit Builder Pi[0-1]
needs: builder-base
runs-on: ubuntu-20.04
strategy:
matrix:
gcc_versions: [8.3.0, 10.2.0, 12.2.0, 13.3.0, 14.2.0]
rpios_types: [buster, bullseye, bookworm]
env:
GCC_VERSION: ${{ matrix.gcc_versions }}
RPIOS_TYPE: ${{ matrix.rpios_types }}
COMPILER_TYPE: CROSS
steps:
- uses: actions/checkout@v4
- name: before_install
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix -y
dos2unix build-scripts/CI/CICTB_32b
chmod +x build-scripts/CI/CICTB_32b
dos2unix patches/curl_stfp_patcher
chmod +x patches/curl_stfp_patcher
dos2unix utils/SF_deployer
chmod +x utils/SF_deployer
if: success()
- name: install
run: |
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
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc && echo $PATH
if: success()
- name: script
run: bash build-scripts/CI/CICTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
shell: bash
if: success()
- name: before_script
run: bash patches/curl_stfp_patcher
shell: bash
if: success() && github.event_name == 'release' && github.event.action == 'published'
- name: deploy
run: bash utils/SF_deployer
shell: bash
if: success() && github.event_name == 'release' && github.event.action == 'published'
builder-native:
name: Native GCC 32-bit Builder Pi[0-1]
needs: [builder-base, builder-cross]
runs-on: ubuntu-20.04
strategy:
matrix:
gcc_versions: [13.3.0, 14.2.0]
rpios_types: [buster, bullseye, bookworm]
env:
GCC_VERSION: ${{ matrix.gcc_versions }}
RPIOS_TYPE: ${{ matrix.rpios_types }}
COMPILER_TYPE: NATIVE
steps:
- uses: actions/checkout@v4
- name: before_install
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix -y
dos2unix build-scripts/CI/CINTB_32b
chmod +x build-scripts/CI/CINTB_32b
dos2unix patches/curl_stfp_patcher
chmod +x patches/curl_stfp_patcher
dos2unix utils/SF_deployer
chmod +x utils/SF_deployer
if: success()
- name: install
run: |
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
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc && echo $PATH
if: success()
- name: script
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
shell: bash
if: success()
- name: before_script
run: bash patches/curl_stfp_patcher
shell: bash
if: success() && github.event_name == 'release' && github.event.action == 'published'
- name: deploy
run: bash utils/SF_deployer
shell: bash
if: success() && github.event_name == 'release' && github.event.action == 'published'