Skip to content

Commit d92de4c

Browse files
committed
Initial commit
1 parent 70b8f6f commit d92de4c

File tree

1 file changed

+46
-8
lines changed

1 file changed

+46
-8
lines changed

.github/workflows/build.yml

+46-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,44 @@ jobs:
1717
submodules: true
1818
- name: Free up some space
1919
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'
2158
- name: Setup Linux cross-compiler
2259
run: |
2360
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,6 +99,7 @@ jobs:
6299
echo 'LLVM_MINGW_HOME=/tmp/llvm-mingw' >> "${GITHUB_ENV}"
63100
echo '/tmp/llvm-mingw/bin' >> "${GITHUB_PATH}"
64101
- name: Setup MacOS X cross-compiler
102+
if: false
65103
run: |
66104
git clone --depth='1' 'https://github.com/tpoechtrager/osxcross.git'
67105
@@ -260,7 +298,7 @@ jobs:
260298
i386-tizenwearable-linux-gnueabi
261299
aarch64-tizeniot-linux-gnu
262300
ia64-unknown-linux-gnu
263-
aarch64-apple-darwin
301+
# aarch64-apple-darwin
264302
aarch64-linux-android
265303
aarch64-linux-gnu
266304
aarch64-unknown-freebsd
@@ -328,7 +366,7 @@ jobs:
328366
sparc64-linux-gnu
329367
sparc64-unknown-freebsd
330368
sparc64-unknown-netbsd
331-
x86_64-apple-darwin
369+
# x86_64-apple-darwin
332370
x86_64-linux-android
333371
x86_64-linux-gnu
334372
x86_64-linux-gnux32
@@ -340,7 +378,7 @@ jobs:
340378
x86_64-unknown-netbsd
341379
x86_64-unknown-openbsd
342380
x86_64-w64-mingw32
343-
x86_64h-apple-darwin
381+
# x86_64h-apple-darwin
344382
aarch64-unknown-serenity
345383
x86_64-unknown-serenity
346384
)
@@ -353,14 +391,14 @@ jobs:
353391
for target in "${targets[@]}"; do
354392
echo "Building for ${target}"
355393
356-
declare ARA_ENABLE_LTO=ON
394+
declare KAI_ENABLE_LTO=ON
357395
358396
if [[ "${target}" == *-apple-darwin ]] || [[ "${target}" == *-w64-mingw32 ]]; then
359-
ARA_ENABLE_LTO=OFF
397+
KAI_ENABLE_LTO=OFF
360398
fi
361399
362400
cmake -Wno-dev \
363-
-DARA_ENABLE_LTO="${ARA_ENABLE_LTO}" \
401+
-DKAI_ENABLE_LTO="${KAI_ENABLE_LTO}" \
364402
-DCMAKE_TOOLCHAIN_FILE="./.github/workflows/cmake_toolchains/${target}.cmake" \
365403
-DCMAKE_INSTALL_PREFIX="${target}" \
366404
-DCMAKE_BUILD_TYPE=MinSizeRel ../ 1>/dev/null
@@ -396,7 +434,7 @@ jobs:
396434
uses: softprops/action-gh-release@master
397435
with:
398436
tag_name: v${{ env.VERSION_TAG }}
399-
name: Ara v${{ env.VERSION_TAG }}
437+
name: Kai v${{ env.VERSION_TAG }}
400438
files: ./output/*
401439
draft: true
402440
prerelease: false

0 commit comments

Comments
 (0)