1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00
rpcs3/.ci/build-linux-aarch64.sh

49 lines
1.6 KiB
Bash
Raw Normal View History

2024-09-29 04:07:27 +02:00
#!/bin/sh -ex
if [ -z "$CIRRUS_CI" ]; then
cd rpcs3 || exit 1
fi
2024-09-29 04:11:21 +02:00
git config --global --add safe.directory '*'
# Pull all the submodules except llvm and opencv
2024-09-29 04:11:21 +02:00
# shellcheck disable=SC2046
git submodule -q update --init $(awk '/path/ && !/llvm/ && !/opencv/ { print $3 }' .gitmodules)
2024-09-29 04:11:21 +02:00
mkdir build && cd build || exit 1
2024-10-12 03:50:47 +02:00
export CC="${CLANG_BINARY}"
export CXX="${CLANGXX_BINARY}"
2024-09-29 04:07:27 +02:00
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_NATIVE_INSTRUCTIONS=OFF \
-DUSE_PRECOMPILED_HEADERS=OFF \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_CXX_FLAGS="$CFLAGS" \
-DUSE_SYSTEM_CURL=ON \
-DUSE_SDL=ON \
-DUSE_SYSTEM_SDL=ON \
-DUSE_SYSTEM_FFMPEG=OFF \
2024-11-16 11:03:42 +01:00
-DUSE_SYSTEM_OPENCV=ON \
2024-09-29 04:07:27 +02:00
-DUSE_DISCORD_RPC=ON \
-DOpenGL_GL_PREFERENCE=LEGACY \
2024-10-12 03:50:47 +02:00
-DLLVM_DIR=/opt/llvm/lib/cmake/llvm \
2024-09-29 04:07:27 +02:00
-DSTATIC_LINK_LLVM=ON \
-G Ninja
ninja; build_status=$?;
cd ..
shellcheck .ci/*.sh
# If it compiled succesfully let's deploy.
# Azure and Cirrus publish PRs as artifacts only.
{ [ "$CI_HAS_ARTIFACTS" = "true" ];
} && SHOULD_DEPLOY="true" || SHOULD_DEPLOY="false"
if [ "$build_status" -eq 0 ] && [ "$SHOULD_DEPLOY" = "true" ]; then
.ci/deploy-linux.sh "aarch64"
2024-09-30 01:20:16 +02:00
fi