16
16
with :
17
17
submodules : true
18
18
- name : Free up some space
19
- if : false
20
19
run : |
21
20
sudo rm --recursive --force \
22
21
'/opt/'* \
@@ -51,14 +50,12 @@ jobs:
51
50
'x11*' \
52
51
'xdg*'
53
52
- name : Increase swap space
54
- if : false
55
53
run : |
56
54
sudo swapoff -a
57
55
sudo fallocate -l 15G '/mnt/swapfile'
58
56
sudo mkswap '/mnt/swapfile'
59
57
sudo swapon '/mnt/swapfile'
60
58
- name : Setup Linux cross-compiler
61
- if : false
62
59
run : |
63
60
declare -r SPHYNX_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Sphynx/releases/latest')")"
64
61
declare -r SPHYNX_TARBALL='/tmp/toolchain.tar.xz'
@@ -70,19 +67,16 @@ jobs:
70
67
echo 'SPHYNX_HOME=/tmp/sphynx' >> "${GITHUB_ENV}"
71
68
echo '/tmp/sphynx/bin' >> "${GITHUB_PATH}"
72
69
- name : Setup Android cross-compiler
73
- if : false
74
70
uses : nttld/setup-ndk@main
75
71
id : setup-ndk
76
72
with :
77
73
ndk-version : r26d
78
74
- name : Post setup settings for Android cross-compiler
79
- if : false
80
75
run : |
81
76
echo 'ANDROID_HOME=${{ steps.setup-ndk.outputs.ndk-path }}' >> "${GITHUB_ENV}"
82
77
sudo sed --in-place '/CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG/d' '/usr/local/share/cmake-'*'/Modules/Platform/Android.cmake'
83
78
echo '${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin' >> "${GITHUB_PATH}"
84
79
- name : Setup Windows cross-compiler
85
- if : false
86
80
run : |
87
81
declare -r LLVM_MINGW_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/LLVMMinGW-Builds/releases/latest')")"
88
82
declare -r LLVM_MINGW_TARBALL='/tmp/toolchain.tar.xz'
94
88
echo 'LLVM_MINGW_HOME=/tmp/llvm-mingw' >> "${GITHUB_ENV}"
95
89
echo '/tmp/llvm-mingw/bin' >> "${GITHUB_PATH}"
96
90
- name : Setup MacOS X cross-compiler
97
- if : false
98
91
run : |
99
92
git clone --depth='1' 'https://github.com/tpoechtrager/osxcross.git'
100
93
@@ -107,7 +100,6 @@ jobs:
107
100
echo "OSXCROSS_HOME=$(realpath './target')" >> "${GITHUB_ENV}"
108
101
echo "$(realpath './target/bin')" >> "${GITHUB_PATH}"
109
102
- name : Setup NetBSD cross-compiler
110
- if : false
111
103
run : |
112
104
declare -r DAKINI_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Dakini/releases/latest')")"
113
105
declare -r DAKINI_TARBALL='/tmp/toolchain.tar.xz'
@@ -119,7 +111,6 @@ jobs:
119
111
echo 'DAKINI_HOME=/tmp/dakini' >> "${GITHUB_ENV}"
120
112
echo '/tmp/dakini/bin' >> "${GITHUB_PATH}"
121
113
- name : Setup FreeBSD cross-compiler
122
- if : false
123
114
run : |
124
115
declare -r LOKI_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Loki/releases/latest')")"
125
116
declare -r LOKI_TARBALL='/tmp/toolchain.tar.xz'
@@ -131,7 +122,6 @@ jobs:
131
122
echo 'LOKI_HOME=/tmp/loki' >> "${GITHUB_ENV}"
132
123
echo '/tmp/loki/bin' >> "${GITHUB_PATH}"
133
124
- name : Setup DragonFly cross-compiler
134
- if : false
135
125
run : |
136
126
declare -r DRAGONFLY_CROSS_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Venti/releases/latest')")"
137
127
declare -r DRAGONFLY_CROSS_TARBALL='/tmp/toolchain.tar.xz'
@@ -143,7 +133,6 @@ jobs:
143
133
echo 'VENTI_HOME=/tmp/venti' >> "${GITHUB_ENV}"
144
134
echo '/tmp/venti/bin' >> "${GITHUB_PATH}"
145
135
- name : Setup Haiku cross-compiler
146
- if : false
147
136
run : |
148
137
declare -r SIL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Sil/releases/latest')")"
149
138
declare -r SIL_TARBALL='/tmp/toolchain.tar.xz'
@@ -166,7 +155,6 @@ jobs:
166
155
echo 'OBGGCC_HOME=/tmp/obggcc' >> "${GITHUB_ENV}"
167
156
echo '/tmp/obggcc/bin' >> "${GITHUB_PATH}"
168
157
- name : Setup OpenBSD cross-compiler
169
- if : false
170
158
run : |
171
159
declare -r ATAR_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Atar/releases/latest')")"
172
160
declare -r ATAR_TARBALL='/tmp/toolchain.tar.xz'
@@ -178,7 +166,6 @@ jobs:
178
166
echo 'ATAR_HOME=/tmp/atar' >> "${GITHUB_ENV}"
179
167
echo '/tmp/atar/bin' >> "${GITHUB_PATH}"
180
168
- name : Setup Linux musl cross-compiler
181
- if : false
182
169
run : |
183
170
declare -r RAIDEN_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Raiden/releases/latest')")"
184
171
declare -r RAIDEN_TARBALL='/tmp/toolchain.tar.xz'
@@ -190,7 +177,6 @@ jobs:
190
177
echo 'RAIDEN_HOME=/tmp/raiden' >> "${GITHUB_ENV}"
191
178
echo '/tmp/raiden/bin' >> "${GITHUB_PATH}"
192
179
- name : Setup SerenityOS cross-compiler
193
- if : false
194
180
run : |
195
181
declare -r SENNA_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Senna/releases/latest')")"
196
182
declare -r SENNA_TARBALL='/tmp/toolchain.tar.xz'
@@ -202,7 +188,6 @@ jobs:
202
188
echo 'SENNA_HOME=/tmp/senna' >> "${GITHUB_ENV}"
203
189
echo '/tmp/senna/bin' >> "${GITHUB_PATH}"
204
190
- name : Setup Kindle cross-compiler
205
- if : false
206
191
run : |
207
192
declare -r KEL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Kel/releases/latest')")"
208
193
declare -r KEL_TARBALL='/tmp/toolchain.tar.xz'
@@ -214,7 +199,6 @@ jobs:
214
199
echo 'KEL_HOME=/tmp/kel' >> "${GITHUB_ENV}"
215
200
echo '/tmp/kel/bin' >> "${GITHUB_PATH}"
216
201
- name : Setup PocketBook cross-compiler
217
- if : false
218
202
run : |
219
203
declare -r NERO_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nero/releases/latest')")"
220
204
declare -r NERO_TARBALL='/tmp/toolchain.tar.xz'
@@ -226,7 +210,6 @@ jobs:
226
210
echo 'NERO_HOME=/tmp/nero' >> "${GITHUB_ENV}"
227
211
echo '/tmp/nero/bin' >> "${GITHUB_PATH}"
228
212
- name : Setup reMarkable cross-compiler
229
- if : false
230
213
run : |
231
214
declare -r NAN_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nan/releases/latest')")"
232
215
declare -r NAN_TARBALL='/tmp/toolchain.tar.xz'
@@ -238,7 +221,6 @@ jobs:
238
221
echo 'NAN_HOME=/tmp/nan' >> "${GITHUB_ENV}"
239
222
echo '/tmp/nan/bin' >> "${GITHUB_PATH}"
240
223
- name : Setup Cervantes cross-compiler
241
- if : false
242
224
run : |
243
225
declare -r NIL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nil/releases/latest')")"
244
226
declare -r NIL_TARBALL='/tmp/toolchain.tar.xz'
@@ -250,7 +232,6 @@ jobs:
250
232
echo 'NIL_HOME=/tmp/nil' >> "${GITHUB_ENV}"
251
233
echo '/tmp/nil/bin' >> "${GITHUB_PATH}"
252
234
- name : Setup Bookeen cross-compiler
253
- if : false
254
235
run : |
255
236
declare -r AI_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Ai/releases/latest')")"
256
237
declare -r AI_TARBALL='/tmp/toolchain.tar.xz'
@@ -262,7 +243,6 @@ jobs:
262
243
echo 'AI_HOME=/tmp/ai' >> "${GITHUB_ENV}"
263
244
echo '/tmp/ai/bin' >> "${GITHUB_PATH}"
264
245
- name : Setup Kobo cross-compiler
265
- if : false
266
246
run : |
267
247
declare -r KAL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Kal/releases/latest')")"
268
248
declare -r KAL_TARBALL='/tmp/toolchain.tar.xz'
@@ -274,7 +254,6 @@ jobs:
274
254
echo 'KAL_HOME=/tmp/kal' >> "${GITHUB_ENV}"
275
255
echo '/tmp/kal/bin' >> "${GITHUB_PATH}"
276
256
- name : Setup Tizen cross-compiler
277
- if : false
278
257
run : |
279
258
declare -r NUL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nul/releases/latest')")"
280
259
declare -r NUL_TARBALL='/tmp/toolchain.tar.xz'
@@ -409,6 +388,8 @@ jobs:
409
388
for target in "${targets[@]}"; do
410
389
echo "Building for ${target}"
411
390
391
+ KAI_ENABLE_LTO='ON'
392
+
412
393
if [[ "${target}" == *-apple-darwin ]] || [[ "${target}" == *-w64-mingw32 ]] || [[ "${target}" == *-unknown-openbsd ]]; then
413
394
KAI_ENABLE_LTO=OFF
414
395
fi
@@ -417,7 +398,7 @@ jobs:
417
398
-DKAI_ENABLE_LTO="${KAI_ENABLE_LTO}" \
418
399
-DCMAKE_TOOLCHAIN_FILE="./.github/workflows/cmake_toolchains/${target}.cmake" \
419
400
-DCMAKE_INSTALL_PREFIX="${target}" \
420
- -DCMAKE_BUILD_TYPE=MinSizeRel ../
401
+ -DCMAKE_BUILD_TYPE=' MinSizeRel' ../
421
402
422
403
pushd './ffmpeg-build'
423
404
make --jobs 1>/dev/null
@@ -426,7 +407,7 @@ jobs:
426
407
cmake --build ./ --target ffmpeg -- --jobs 1>/dev/null
427
408
cmake --build ./ --target bearssl -- --jobs 1>/dev/null
428
409
cmake --build ./ -- --jobs 1>/dev/null
429
- cmake --install ./ 1>/dev/null
410
+ cmake --install ./ --strip 1>/dev/null
430
411
431
412
if [[ "${target}" == *'mingw32' ]]; then
432
413
zip --recurse-paths -9 "${OUTPUT_DIRECTORY}/${target}.zip" "${target}" 1>/dev/null
@@ -435,8 +416,6 @@ jobs:
435
416
fi
436
417
437
418
rm --force --recursive ./*
438
-
439
- break
440
419
done
441
420
- name : Upload artifact
442
421
uses : actions/upload-artifact@main
0 commit comments