mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 21:38:01 +03:00
aarch64: linux CI
This commit is contained in:
parent
03a58d36da
commit
4fe306c9ad
4 changed files with 80 additions and 38 deletions
39
.ci/build-linux-aarch64.sh
Normal file
39
.ci/build-linux-aarch64.sh
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/sh -ex
|
||||||
|
|
||||||
|
if [ -z "$CIRRUS_CI" ]; then
|
||||||
|
cd rpcs3 || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export CC=clang
|
||||||
|
export CXX=clang++
|
||||||
|
|
||||||
|
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 \
|
||||||
|
-DUSE_DISCORD_RPC=ON \
|
||||||
|
-DOpenGL_GL_PREFERENCE=LEGACY \
|
||||||
|
-DSTATIC_LINK_LLVM=ON \
|
||||||
|
-DBUILD_LLVM=OFF \
|
||||||
|
-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"
|
||||||
|
fi
|
|
@ -61,5 +61,5 @@ shellcheck .ci/*.sh
|
||||||
} && SHOULD_DEPLOY="true" || SHOULD_DEPLOY="false"
|
} && SHOULD_DEPLOY="true" || SHOULD_DEPLOY="false"
|
||||||
|
|
||||||
if [ "$build_status" -eq 0 ] && [ "$SHOULD_DEPLOY" = "true" ]; then
|
if [ "$build_status" -eq 0 ] && [ "$SHOULD_DEPLOY" = "true" ]; then
|
||||||
.ci/deploy-linux.sh
|
.ci/deploy-linux.sh "x86_64"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
|
|
||||||
cd build || exit 1
|
cd build || exit 1
|
||||||
|
|
||||||
|
CPU_ARCH="${1:-x86_64}"
|
||||||
|
|
||||||
if [ "$DEPLOY_APPIMAGE" = "true" ]; then
|
if [ "$DEPLOY_APPIMAGE" = "true" ]; then
|
||||||
DESTDIR=AppDir ninja install
|
DESTDIR=AppDir ninja install
|
||||||
|
|
||||||
curl -fsSLo /usr/bin/linuxdeploy https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
curl -fsSLo /usr/bin/linuxdeploy https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${CPU_ARCH}.AppImage
|
||||||
chmod +x /usr/bin/linuxdeploy
|
chmod +x /usr/bin/linuxdeploy
|
||||||
curl -fsSLo /usr/bin/linuxdeploy-plugin-qt https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
curl -fsSLo /usr/bin/linuxdeploy-plugin-qt https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-${CPU_ARCH}.AppImage
|
||||||
chmod +x /usr/bin/linuxdeploy-plugin-qt
|
chmod +x /usr/bin/linuxdeploy-plugin-qt
|
||||||
curl -fsSLo linuxdeploy-plugin-checkrt.sh https://github.com/linuxdeploy/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt-x86_64.sh
|
curl -fsSLo linuxdeploy-plugin-checkrt.sh https://github.com/darealshinji/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt.sh
|
||||||
chmod +x ./linuxdeploy-plugin-checkrt.sh
|
chmod +x ./linuxdeploy-plugin-checkrt.sh
|
||||||
|
|
||||||
export EXTRA_PLATFORM_PLUGINS="libqwayland-egl.so;libqwayland-generic.so"
|
export EXTRA_PLATFORM_PLUGINS="libqwayland-egl.so;libqwayland-generic.so"
|
||||||
|
|
69
.cirrus.yml
69
.cirrus.yml
|
@ -114,37 +114,38 @@ freebsd_task:
|
||||||
install_script: "sh -ex ./.ci/install-freebsd.sh"
|
install_script: "sh -ex ./.ci/install-freebsd.sh"
|
||||||
script: "./.ci/build-freebsd.sh"
|
script: "./.ci/build-freebsd.sh"
|
||||||
|
|
||||||
# macos_task:
|
linux_aarch64_task:
|
||||||
# timeout_in: 12000m
|
env:
|
||||||
# homebrew_cache:
|
BUILD_ARTIFACTSTAGINGDIRECTORY: ${CIRRUS_WORKING_DIR}/artifacts
|
||||||
# folder: /Users/admin/Library/Caches/Homebrew
|
ARTDIR: ${CIRRUS_WORKING_DIR}/artifacts/
|
||||||
# qt_cache:
|
CCACHE_DIR: "/tmp/ccache_dir"
|
||||||
# folder: /tmp/Qt
|
CCACHE_MAXSIZE: 300M
|
||||||
# ccache_cache:
|
CI_HAS_ARTIFACTS: true
|
||||||
# folder: /tmp/ccache_dir
|
UPLOAD_COMMIT_HASH: d812f1254a1157c80fd402f94446310560f54e5f
|
||||||
# matrix:
|
UPLOAD_REPO_FULL_NAME: "rpcs3/rpcs3-binaries-linux-aarch64"
|
||||||
# - name: Cirrus macOS
|
DEPLOY_APPIMAGE: false
|
||||||
# macos_instance:
|
APPDIR: "./appdir"
|
||||||
# image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
|
RELEASE_MESSAGE: "../GitHubReleaseMessage.txt"
|
||||||
# mac_script:
|
COMPILER: clang
|
||||||
# - mkdir artifacts
|
ccache_cache:
|
||||||
# - chmod +x ".ci/build-mac.sh"
|
folder: "/tmp/ccache_dir"
|
||||||
# - chmod +x ".ci/deploy-mac.sh"
|
matrix:
|
||||||
# - ".ci/build-mac.sh"
|
- name: Cirrus Linux AArch64 Clang
|
||||||
# env:
|
arm_container:
|
||||||
# BUILD_ARTIFACTSTAGINGDIRECTORY: ${CIRRUS_WORKING_DIR}/artifacts
|
image: 'docker.io/kd117/rpcs3-ci-aarch64:latest'
|
||||||
# ARTDIR: ${CIRRUS_WORKING_DIR}/artifacts/
|
cpu: 8
|
||||||
# CCACHE_DIR: "/tmp/ccache_dir"
|
memory: 8G
|
||||||
# CCACHE_MAXSIZE: 300M
|
clang_script:
|
||||||
# CI_HAS_ARTIFACTS: true
|
- mkdir artifacts
|
||||||
# UPLOAD_COMMIT_HASH: 51ae32f468089a8169aaf1567de355ff4a3e0842
|
- "sh -ex ./.ci/build-linux-aarch64.sh"
|
||||||
# UPLOAD_REPO_FULL_NAME: "rpcs3/rpcs3-binaries-mac"
|
artifacts:
|
||||||
# RELEASE_MESSAGE: "../GitHubReleaseMessage.txt"
|
name: Artifact
|
||||||
# artifacts:
|
path: "artifacts/*"
|
||||||
# name: Artifact
|
# push_script: |
|
||||||
# path: "artifacts/*"
|
# if [ "$CIRRUS_REPO_OWNER" = "RPCS3" ] && [ -z "$CIRRUS_PR" ] && [ "$CIRRUS_BRANCH" = "master" ] && [ "$COMPILER" = "gcc" ]; then
|
||||||
# push_script: |
|
# COMM_TAG=$(awk '/version{.*}/ { printf("%d.%d.%d", $5, $6, $7) }' ./rpcs3/rpcs3_version.cpp)
|
||||||
# if [ "$CIRRUS_REPO_OWNER" = "RPCS3" ] && [ -z "$CIRRUS_PR" ] && [ "$CIRRUS_BRANCH" = "master" ]; then
|
# COMM_COUNT=$(git rev-list --count HEAD)
|
||||||
# source './.ci/export-cirrus-vars.sh'
|
# COMM_HASH=$(git rev-parse --short=8 HEAD
|
||||||
# .ci/github-upload.sh
|
# export AVVER="${COMM_TAG}-${COMM_COUNT}
|
||||||
# fi;
|
# .ci/github-upload.sh
|
||||||
|
# fi;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue