-
-
Notifications
You must be signed in to change notification settings - Fork 104
302 lines (286 loc) · 10.2 KB
/
docs.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# ===============================================
# 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 Docs Deployer
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
paths:
- '**.md'
- '**.yml'
release:
branches:
- master
paths:
- '**.md'
- '**.yml'
env:
CURL_VERSION: 8.9.1
CCACHE_COMPRESS: 1
CCACHE_DIR: $HOME/.ccache
USER_SFTP: ${{ secrets.USER_SFTP }}
PASSWORD_SFTP: ${{ secrets.PASSWORD_SFTP }}
jobs:
builder-docs_root:
name: Docs Root Deployer
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: before_install
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix -y
dos2unix patches/curl_stfp_patcher
chmod +x patches/curl_stfp_patcher
dos2unix utils/SF_docs_deployer
chmod +x utils/SF_docs_deployer
if: success()
- name: install
run: |
sudo apt-get -y install -qq ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc && echo $PATH
if: success()
- name: before_script
run: bash patches/curl_stfp_patcher
shell: bash
if: success()
- name: move_deploy_root
run: |
mkdir -p $HOME/root
cp docs/root-gcc.md $HOME/root/README.md
bash utils/SF_docs_deployer -f "root"
shell: bash
if: success()
builder-docs_base:
name: Docs Base Deployer
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: before_install
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix -y
dos2unix patches/curl_stfp_patcher
chmod +x patches/curl_stfp_patcher
dos2unix utils/SF_docs_deployer
chmod +x utils/SF_docs_deployer
if: success()
- name: install
run: |
sudo apt-get -y install -qq ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc && echo $PATH
if: success()
- name: before_script
run: bash patches/curl_stfp_patcher
shell: bash
if: success()
- name: move_deploy_cli
run: |
mkdir -p $HOME/base
cp docs/base-gcc.md $HOME/base/README.md
bash utils/SF_docs_deployer -t "CLI" -f "base"
shell: bash
if: success()
- name: move_deploy_cross_64
run: |
mkdir -p $HOME/base
cp docs/gcc64.md $HOME/base/README.md
bash utils/SF_docs_deployer -t "cross_64" -f "base"
shell: bash
if: success()
- name: move_deploy_native
run: |
mkdir -p $HOME/base
cp docs/native-gcc.md $HOME/base/README.md
bash utils/SF_docs_deployer -t "native" -f "base"
shell: bash
if: success()
- name: move_deploy_cross
run: |
mkdir -p $HOME/base
cp docs/cross-gcc.md $HOME/base/README.md
bash utils/SF_docs_deployer -t "cross" -f "base"
shell: bash
if: success()
builder-docs_main:
name: Docs Main Deployer
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: before_install
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix -y
dos2unix patches/curl_stfp_patcher
chmod +x patches/curl_stfp_patcher
dos2unix utils/SF_docs_deployer
chmod +x utils/SF_docs_deployer
if: success()
- name: install
run: |
sudo apt-get -y install -qq ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc && echo $PATH
if: success()
- name: before_script
run: bash patches/curl_stfp_patcher
shell: bash
if: success()
- name: move_deploy_cross_buster
run: |
mkdir -p $HOME/main
cp docs/cross-gcc-buster.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "cross" -f "main" -o "buster"
shell: bash
if: success()
- name: move_deploy_cross_bullseye
run: |
mkdir -p $HOME/main
cp docs/cross-gcc-bullseye.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "cross" -f "main" -o "bullseye"
shell: bash
if: success()
- name: move_deploy_cross_bookworm
run: |
mkdir -p $HOME/main
cp docs/cross-gcc-bookworm.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "cross" -f "main" -o "bookworm"
shell: bash
if: success()
- name: move_deploy_native_buster
run: |
mkdir -p $HOME/main
cp docs/native-gcc-buster.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "native" -f "main" -o "buster"
shell: bash
if: success()
- name: move_deploy_native_bullseye
run: |
mkdir -p $HOME/main
cp docs/native-gcc-bullseye.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "native" -f "main" -o "bullseye"
shell: bash
if: success()
- name: move_deploy_native_bookworm
run: |
mkdir -p $HOME/main
cp docs/native-gcc-bookworm.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "native" -f "main" -o "bookworm"
shell: bash
if: success()
- name: move_deploy_cross_64_buster
run: |
mkdir -p $HOME/main
cp docs/cross-gcc64-buster.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "cross_64" -f "main" -o "buster"
shell: bash
if: success()
- name: move_deploy_cross_64_bullseye
run: |
mkdir -p $HOME/main
cp docs/cross-gcc64-bullseye.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "cross_64" -f "main" -o "bullseye"
shell: bash
if: success()
- name: move_deploy_cross_64_bookworm
run: |
mkdir -p $HOME/main
cp docs/cross-gcc64-bookworm.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "cross_64" -f "main" -o "bookworm"
shell: bash
if: success()
- name: move_deploy_native_64_buster
run: |
mkdir -p $HOME/main
cp docs/native-gcc64-buster.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "native_64" -f "main" -o "buster"
shell: bash
if: success()
- name: move_deploy_native_64_bullseye
run: |
mkdir -p $HOME/main
cp docs/native-gcc64-bullseye.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "native_64" -f "main" -o "bullseye"
shell: bash
if: success()
- name: move_deploy_native_64_bookworm
run: |
mkdir -p $HOME/main
cp docs/native-gcc64-bookworm.md $HOME/main/README.md
bash utils/SF_docs_deployer -t "native_64" -f "main" -o "bookworm"
shell: bash
if: success()
builder-docs_experimental:
name: Docs Experimental Deployer
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: before_install
run: |
sudo apt-get update -qq
sudo apt-get install -qq dos2unix -y
dos2unix patches/curl_stfp_patcher
chmod +x patches/curl_stfp_patcher
dos2unix utils/SF_docs_deployer
chmod +x utils/SF_docs_deployer
if: success()
- name: install
run: |
sudo apt-get -y install -qq ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc && echo $PATH
if: success()
- name: before_script
run: bash patches/curl_stfp_patcher
shell: bash
if: success()
- name: move_deploy_x86
run: |
mkdir -p $HOME/experiment
cp docs/desktop-gcc-x86.md $HOME/experiment/README.md
bash utils/SF_docs_deployer -f "experimental" -r "x86"
shell: bash
if: success()
- name: move_deploy_x86_64
run: |
mkdir -p $HOME/experiment
cp docs/desktop-gcc-x86_64.md $HOME/experiment/README.md
bash utils/SF_docs_deployer -f "experimental" -r "x86_64"
shell: bash
if: success()
- name: move_deploy_main
run: |
mkdir -p $HOME/main
cp docs/desktop-gcc.md $HOME/main/README.md
bash utils/SF_docs_deployer -f "experimental"
shell: bash
if: success()
- name: move_deploy_base
run: |
mkdir -p $HOME/base
cp docs/exp-gcc.md $HOME/base/README.md
bash utils/SF_docs_deployer -f "experimental"
shell: bash
if: success()