Skip to content

Commit 8c89191

Browse files
committed
Update to GCC 14.1.0
1 parent c6a7f24 commit 8c89191

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

.github/workflows/build.yml

+4-25
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
with:
1717
submodules: true
1818
- name: Free up some space
19-
if: false
2019
run: |
2120
sudo rm --recursive --force \
2221
'/opt/'* \
@@ -51,14 +50,12 @@ jobs:
5150
'x11*' \
5251
'xdg*'
5352
- name: Increase swap space
54-
if: false
5553
run: |
5654
sudo swapoff -a
5755
sudo fallocate -l 15G '/mnt/swapfile'
5856
sudo mkswap '/mnt/swapfile'
5957
sudo swapon '/mnt/swapfile'
6058
- name: Setup Linux cross-compiler
61-
if: false
6259
run: |
6360
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')")"
6461
declare -r SPHYNX_TARBALL='/tmp/toolchain.tar.xz'
@@ -70,19 +67,16 @@ jobs:
7067
echo 'SPHYNX_HOME=/tmp/sphynx' >> "${GITHUB_ENV}"
7168
echo '/tmp/sphynx/bin' >> "${GITHUB_PATH}"
7269
- name: Setup Android cross-compiler
73-
if: false
7470
uses: nttld/setup-ndk@main
7571
id: setup-ndk
7672
with:
7773
ndk-version: r26d
7874
- name: Post setup settings for Android cross-compiler
79-
if: false
8075
run: |
8176
echo 'ANDROID_HOME=${{ steps.setup-ndk.outputs.ndk-path }}' >> "${GITHUB_ENV}"
8277
sudo sed --in-place '/CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG/d' '/usr/local/share/cmake-'*'/Modules/Platform/Android.cmake'
8378
echo '${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin' >> "${GITHUB_PATH}"
8479
- name: Setup Windows cross-compiler
85-
if: false
8680
run: |
8781
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')")"
8882
declare -r LLVM_MINGW_TARBALL='/tmp/toolchain.tar.xz'
@@ -94,7 +88,6 @@ jobs:
9488
echo 'LLVM_MINGW_HOME=/tmp/llvm-mingw' >> "${GITHUB_ENV}"
9589
echo '/tmp/llvm-mingw/bin' >> "${GITHUB_PATH}"
9690
- name: Setup MacOS X cross-compiler
97-
if: false
9891
run: |
9992
git clone --depth='1' 'https://github.com/tpoechtrager/osxcross.git'
10093
@@ -107,7 +100,6 @@ jobs:
107100
echo "OSXCROSS_HOME=$(realpath './target')" >> "${GITHUB_ENV}"
108101
echo "$(realpath './target/bin')" >> "${GITHUB_PATH}"
109102
- name: Setup NetBSD cross-compiler
110-
if: false
111103
run: |
112104
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')")"
113105
declare -r DAKINI_TARBALL='/tmp/toolchain.tar.xz'
@@ -119,7 +111,6 @@ jobs:
119111
echo 'DAKINI_HOME=/tmp/dakini' >> "${GITHUB_ENV}"
120112
echo '/tmp/dakini/bin' >> "${GITHUB_PATH}"
121113
- name: Setup FreeBSD cross-compiler
122-
if: false
123114
run: |
124115
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')")"
125116
declare -r LOKI_TARBALL='/tmp/toolchain.tar.xz'
@@ -131,7 +122,6 @@ jobs:
131122
echo 'LOKI_HOME=/tmp/loki' >> "${GITHUB_ENV}"
132123
echo '/tmp/loki/bin' >> "${GITHUB_PATH}"
133124
- name: Setup DragonFly cross-compiler
134-
if: false
135125
run: |
136126
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')")"
137127
declare -r DRAGONFLY_CROSS_TARBALL='/tmp/toolchain.tar.xz'
@@ -143,7 +133,6 @@ jobs:
143133
echo 'VENTI_HOME=/tmp/venti' >> "${GITHUB_ENV}"
144134
echo '/tmp/venti/bin' >> "${GITHUB_PATH}"
145135
- name: Setup Haiku cross-compiler
146-
if: false
147136
run: |
148137
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')")"
149138
declare -r SIL_TARBALL='/tmp/toolchain.tar.xz'
@@ -166,7 +155,6 @@ jobs:
166155
echo 'OBGGCC_HOME=/tmp/obggcc' >> "${GITHUB_ENV}"
167156
echo '/tmp/obggcc/bin' >> "${GITHUB_PATH}"
168157
- name: Setup OpenBSD cross-compiler
169-
if: false
170158
run: |
171159
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')")"
172160
declare -r ATAR_TARBALL='/tmp/toolchain.tar.xz'
@@ -178,7 +166,6 @@ jobs:
178166
echo 'ATAR_HOME=/tmp/atar' >> "${GITHUB_ENV}"
179167
echo '/tmp/atar/bin' >> "${GITHUB_PATH}"
180168
- name: Setup Linux musl cross-compiler
181-
if: false
182169
run: |
183170
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')")"
184171
declare -r RAIDEN_TARBALL='/tmp/toolchain.tar.xz'
@@ -190,7 +177,6 @@ jobs:
190177
echo 'RAIDEN_HOME=/tmp/raiden' >> "${GITHUB_ENV}"
191178
echo '/tmp/raiden/bin' >> "${GITHUB_PATH}"
192179
- name: Setup SerenityOS cross-compiler
193-
if: false
194180
run: |
195181
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')")"
196182
declare -r SENNA_TARBALL='/tmp/toolchain.tar.xz'
@@ -202,7 +188,6 @@ jobs:
202188
echo 'SENNA_HOME=/tmp/senna' >> "${GITHUB_ENV}"
203189
echo '/tmp/senna/bin' >> "${GITHUB_PATH}"
204190
- name: Setup Kindle cross-compiler
205-
if: false
206191
run: |
207192
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')")"
208193
declare -r KEL_TARBALL='/tmp/toolchain.tar.xz'
@@ -214,7 +199,6 @@ jobs:
214199
echo 'KEL_HOME=/tmp/kel' >> "${GITHUB_ENV}"
215200
echo '/tmp/kel/bin' >> "${GITHUB_PATH}"
216201
- name: Setup PocketBook cross-compiler
217-
if: false
218202
run: |
219203
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')")"
220204
declare -r NERO_TARBALL='/tmp/toolchain.tar.xz'
@@ -226,7 +210,6 @@ jobs:
226210
echo 'NERO_HOME=/tmp/nero' >> "${GITHUB_ENV}"
227211
echo '/tmp/nero/bin' >> "${GITHUB_PATH}"
228212
- name: Setup reMarkable cross-compiler
229-
if: false
230213
run: |
231214
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')")"
232215
declare -r NAN_TARBALL='/tmp/toolchain.tar.xz'
@@ -238,7 +221,6 @@ jobs:
238221
echo 'NAN_HOME=/tmp/nan' >> "${GITHUB_ENV}"
239222
echo '/tmp/nan/bin' >> "${GITHUB_PATH}"
240223
- name: Setup Cervantes cross-compiler
241-
if: false
242224
run: |
243225
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')")"
244226
declare -r NIL_TARBALL='/tmp/toolchain.tar.xz'
@@ -250,7 +232,6 @@ jobs:
250232
echo 'NIL_HOME=/tmp/nil' >> "${GITHUB_ENV}"
251233
echo '/tmp/nil/bin' >> "${GITHUB_PATH}"
252234
- name: Setup Bookeen cross-compiler
253-
if: false
254235
run: |
255236
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')")"
256237
declare -r AI_TARBALL='/tmp/toolchain.tar.xz'
@@ -262,7 +243,6 @@ jobs:
262243
echo 'AI_HOME=/tmp/ai' >> "${GITHUB_ENV}"
263244
echo '/tmp/ai/bin' >> "${GITHUB_PATH}"
264245
- name: Setup Kobo cross-compiler
265-
if: false
266246
run: |
267247
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')")"
268248
declare -r KAL_TARBALL='/tmp/toolchain.tar.xz'
@@ -274,7 +254,6 @@ jobs:
274254
echo 'KAL_HOME=/tmp/kal' >> "${GITHUB_ENV}"
275255
echo '/tmp/kal/bin' >> "${GITHUB_PATH}"
276256
- name: Setup Tizen cross-compiler
277-
if: false
278257
run: |
279258
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')")"
280259
declare -r NUL_TARBALL='/tmp/toolchain.tar.xz'
@@ -409,6 +388,8 @@ jobs:
409388
for target in "${targets[@]}"; do
410389
echo "Building for ${target}"
411390
391+
KAI_ENABLE_LTO='ON'
392+
412393
if [[ "${target}" == *-apple-darwin ]] || [[ "${target}" == *-w64-mingw32 ]] || [[ "${target}" == *-unknown-openbsd ]]; then
413394
KAI_ENABLE_LTO=OFF
414395
fi
@@ -417,7 +398,7 @@ jobs:
417398
-DKAI_ENABLE_LTO="${KAI_ENABLE_LTO}" \
418399
-DCMAKE_TOOLCHAIN_FILE="./.github/workflows/cmake_toolchains/${target}.cmake" \
419400
-DCMAKE_INSTALL_PREFIX="${target}" \
420-
-DCMAKE_BUILD_TYPE=MinSizeRel ../
401+
-DCMAKE_BUILD_TYPE='MinSizeRel' ../
421402
422403
pushd './ffmpeg-build'
423404
make --jobs 1>/dev/null
@@ -426,7 +407,7 @@ jobs:
426407
cmake --build ./ --target ffmpeg -- --jobs 1>/dev/null
427408
cmake --build ./ --target bearssl -- --jobs 1>/dev/null
428409
cmake --build ./ -- --jobs 1>/dev/null
429-
cmake --install ./ 1>/dev/null
410+
cmake --install ./ --strip 1>/dev/null
430411
431412
if [[ "${target}" == *'mingw32' ]]; then
432413
zip --recurse-paths -9 "${OUTPUT_DIRECTORY}/${target}.zip" "${target}" 1>/dev/null
@@ -435,8 +416,6 @@ jobs:
435416
fi
436417
437418
rm --force --recursive ./*
438-
439-
break
440419
done
441420
- name: Upload artifact
442421
uses: actions/upload-artifact@main

0 commit comments

Comments
 (0)