17
17
submodules : true
18
18
- name : Free up some space
19
19
run : |
20
- rm --recursive --force '/opt' || true
20
+ sudo rm --recursive --force \
21
+ '/opt/'* \
22
+ '/usr/local/lib/android' \
23
+ '/usr/local/share/vcpkg' \
24
+ '/usr/share/java'
25
+ sudo apt purge --auto-remove \
26
+ '*apache2*' \
27
+ '*docker*' \
28
+ '*dotnet*' \
29
+ '*firefox*' \
30
+ '*google*' \
31
+ '*jdk*' \
32
+ '*nginx*' \
33
+ '*php*' \
34
+ '*ruby*' \
35
+ '*wayland*' \
36
+ 'auto*' \
37
+ 'azure-cli' \
38
+ 'bind9*' \
39
+ 'build-essential' \
40
+ 'clang*' \
41
+ 'container*' \
42
+ 'glib*' \
43
+ 'libmono*' \
44
+ 'lld*' \
45
+ 'llvm*' \
46
+ 'mercurial*' \
47
+ 'mysql*' \
48
+ 'postgresql*' \
49
+ 'powershell' \
50
+ 'x11*' \
51
+ 'xdg*'
52
+ - name : Increase swap space
53
+ run : |
54
+ sudo swapoff -a
55
+ sudo fallocate -l 15G '/mnt/swapfile'
56
+ sudo mkswap '/mnt/swapfile'
57
+ sudo swapon '/mnt/swapfile'
21
58
- name : Setup Linux cross-compiler
22
59
run : |
23
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')")"
62
99
echo 'LLVM_MINGW_HOME=/tmp/llvm-mingw' >> "${GITHUB_ENV}"
63
100
echo '/tmp/llvm-mingw/bin' >> "${GITHUB_PATH}"
64
101
- name : Setup MacOS X cross-compiler
102
+ if : false
65
103
run : |
66
104
git clone --depth='1' 'https://github.com/tpoechtrager/osxcross.git'
67
105
@@ -260,7 +298,7 @@ jobs:
260
298
i386-tizenwearable-linux-gnueabi
261
299
aarch64-tizeniot-linux-gnu
262
300
ia64-unknown-linux-gnu
263
- aarch64-apple-darwin
301
+ # aarch64-apple-darwin
264
302
aarch64-linux-android
265
303
aarch64-linux-gnu
266
304
aarch64-unknown-freebsd
@@ -328,7 +366,7 @@ jobs:
328
366
sparc64-linux-gnu
329
367
sparc64-unknown-freebsd
330
368
sparc64-unknown-netbsd
331
- x86_64-apple-darwin
369
+ # x86_64-apple-darwin
332
370
x86_64-linux-android
333
371
x86_64-linux-gnu
334
372
x86_64-linux-gnux32
@@ -340,7 +378,7 @@ jobs:
340
378
x86_64-unknown-netbsd
341
379
x86_64-unknown-openbsd
342
380
x86_64-w64-mingw32
343
- x86_64h-apple-darwin
381
+ # x86_64h-apple-darwin
344
382
aarch64-unknown-serenity
345
383
x86_64-unknown-serenity
346
384
)
@@ -353,14 +391,14 @@ jobs:
353
391
for target in "${targets[@]}"; do
354
392
echo "Building for ${target}"
355
393
356
- declare ARA_ENABLE_LTO =ON
394
+ declare KAI_ENABLE_LTO =ON
357
395
358
396
if [[ "${target}" == *-apple-darwin ]] || [[ "${target}" == *-w64-mingw32 ]]; then
359
- ARA_ENABLE_LTO =OFF
397
+ KAI_ENABLE_LTO =OFF
360
398
fi
361
399
362
400
cmake -Wno-dev \
363
- -DARA_ENABLE_LTO ="${ARA_ENABLE_LTO }" \
401
+ -DKAI_ENABLE_LTO ="${KAI_ENABLE_LTO }" \
364
402
-DCMAKE_TOOLCHAIN_FILE="./.github/workflows/cmake_toolchains/${target}.cmake" \
365
403
-DCMAKE_INSTALL_PREFIX="${target}" \
366
404
-DCMAKE_BUILD_TYPE=MinSizeRel ../ 1>/dev/null
@@ -396,7 +434,7 @@ jobs:
396
434
uses : softprops/action-gh-release@master
397
435
with :
398
436
tag_name : v${{ env.VERSION_TAG }}
399
- name : Ara v${{ env.VERSION_TAG }}
437
+ name : Kai v${{ env.VERSION_TAG }}
400
438
files : ./output/*
401
439
draft : true
402
440
prerelease : false
0 commit comments