diff options
Diffstat (limited to '.ci')
| -rwxr-xr-x | .ci/scripts/clang/docker.sh | 6 | ||||
| -rw-r--r-- | .ci/scripts/clang/exec.sh | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | .ci/scripts/clang/upload.sh | 0 | ||||
| -rw-r--r-- | .ci/scripts/common/post-upload.sh | 6 | ||||
| -rw-r--r-- | .ci/scripts/format/exec.sh | 2 | ||||
| -rwxr-xr-x | .ci/scripts/linux/docker.sh | 9 | ||||
| -rw-r--r-- | .ci/scripts/linux/exec.sh | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | .ci/scripts/linux/upload.sh | 5 | ||||
| -rwxr-xr-x | .ci/scripts/windows/docker.sh | 20 | ||||
| -rw-r--r-- | .ci/scripts/windows/exec.sh | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | .ci/scripts/windows/upload.sh | 0 |
11 files changed, 31 insertions, 23 deletions
diff --git a/.ci/scripts/clang/docker.sh b/.ci/scripts/clang/docker.sh index 885d74e97..94a9ca0ec 100755 --- a/.ci/scripts/clang/docker.sh +++ b/.ci/scripts/clang/docker.sh | |||
| @@ -3,14 +3,12 @@ | |||
| 3 | # Exit on error, rather than continuing with the rest of the script. | 3 | # Exit on error, rather than continuing with the rest of the script. |
| 4 | set -e | 4 | set -e |
| 5 | 5 | ||
| 6 | cd /yuzu | ||
| 7 | |||
| 8 | ccache -s | 6 | ccache -s |
| 9 | 7 | ||
| 10 | mkdir build || true && cd build | 8 | mkdir build || true && cd build |
| 11 | cmake .. -DDISPLAY_VERSION=$1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/lib/ccache/clang -DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DUSE_DISCORD_PRESENCE=ON -DENABLE_QT_TRANSLATION=ON -DCMAKE_INSTALL_PREFIX="/usr" | 9 | cmake .. -GNinja -DDISPLAY_VERSION=$1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/lib/ccache/clang -DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DUSE_DISCORD_PRESENCE=ON -DENABLE_QT_TRANSLATION=ON -DCMAKE_INSTALL_PREFIX="/usr" |
| 12 | 10 | ||
| 13 | make -j$(nproc) | 11 | ninja |
| 14 | 12 | ||
| 15 | ccache -s | 13 | ccache -s |
| 16 | 14 | ||
diff --git a/.ci/scripts/clang/exec.sh b/.ci/scripts/clang/exec.sh index e56cd4325..a213aac27 100644 --- a/.ci/scripts/clang/exec.sh +++ b/.ci/scripts/clang/exec.sh | |||
| @@ -4,5 +4,5 @@ mkdir -p "ccache" || true | |||
| 4 | chmod a+x ./.ci/scripts/clang/docker.sh | 4 | chmod a+x ./.ci/scripts/clang/docker.sh |
| 5 | # the UID for the container yuzu user is 1027 | 5 | # the UID for the container yuzu user is 1027 |
| 6 | sudo chown -R 1027 ./ | 6 | sudo chown -R 1027 ./ |
| 7 | docker run -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v $(pwd):/yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/clang/docker.sh $1 | 7 | docker run -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/clang/docker.sh "$1" |
| 8 | sudo chown -R $UID ./ | 8 | sudo chown -R $UID ./ |
diff --git a/.ci/scripts/clang/upload.sh b/.ci/scripts/clang/upload.sh index fe4e6b2ac..fe4e6b2ac 100644..100755 --- a/.ci/scripts/clang/upload.sh +++ b/.ci/scripts/clang/upload.sh | |||
diff --git a/.ci/scripts/common/post-upload.sh b/.ci/scripts/common/post-upload.sh index 387431564..a4e3070fd 100644 --- a/.ci/scripts/common/post-upload.sh +++ b/.ci/scripts/common/post-upload.sh | |||
| @@ -4,8 +4,10 @@ | |||
| 4 | cp license.txt "$DIR_NAME" | 4 | cp license.txt "$DIR_NAME" |
| 5 | cp README.md "$DIR_NAME" | 5 | cp README.md "$DIR_NAME" |
| 6 | 6 | ||
| 7 | tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt | 7 | if [[ -z "${NO_SOURCE_PACK}" ]]; then |
| 8 | cp "${REV_NAME}-source.tar.xz" "$DIR_NAME" | 8 | tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt |
| 9 | cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME" | ||
| 10 | fi | ||
| 9 | 11 | ||
| 10 | tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME" | 12 | tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME" |
| 11 | 13 | ||
diff --git a/.ci/scripts/format/exec.sh b/.ci/scripts/format/exec.sh index e9e9d2e17..c50e90d66 100644 --- a/.ci/scripts/format/exec.sh +++ b/.ci/scripts/format/exec.sh | |||
| @@ -3,5 +3,5 @@ | |||
| 3 | chmod a+x ./.ci/scripts/format/docker.sh | 3 | chmod a+x ./.ci/scripts/format/docker.sh |
| 4 | # the UID for the container yuzu user is 1027 | 4 | # the UID for the container yuzu user is 1027 |
| 5 | sudo chown -R 1027 ./ | 5 | sudo chown -R 1027 ./ |
| 6 | docker run -v $(pwd):/yuzu yuzuemu/build-environments:linux-clang-format /bin/bash -ex /yuzu/.ci/scripts/format/docker.sh | 6 | docker run -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-clang-format /bin/bash -ex /yuzu/.ci/scripts/format/docker.sh |
| 7 | sudo chown -R $UID ./ | 7 | sudo chown -R $UID ./ |
diff --git a/.ci/scripts/linux/docker.sh b/.ci/scripts/linux/docker.sh index 5070b92d1..436155b3d 100755 --- a/.ci/scripts/linux/docker.sh +++ b/.ci/scripts/linux/docker.sh | |||
| @@ -3,8 +3,6 @@ | |||
| 3 | # Exit on error, rather than continuing with the rest of the script. | 3 | # Exit on error, rather than continuing with the rest of the script. |
| 4 | set -e | 4 | set -e |
| 5 | 5 | ||
| 6 | cd /yuzu | ||
| 7 | |||
| 8 | ccache -s | 6 | ccache -s |
| 9 | 7 | ||
| 10 | mkdir build || true && cd build | 8 | mkdir build || true && cd build |
| @@ -19,15 +17,16 @@ cmake .. \ | |||
| 19 | -DENABLE_QT_TRANSLATION=ON \ | 17 | -DENABLE_QT_TRANSLATION=ON \ |
| 20 | -DUSE_DISCORD_PRESENCE=ON \ | 18 | -DUSE_DISCORD_PRESENCE=ON \ |
| 21 | -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \ | 19 | -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \ |
| 22 | -DYUZU_USE_BUNDLED_FFMPEG=ON | 20 | -DYUZU_USE_BUNDLED_FFMPEG=ON \ |
| 21 | -GNinja | ||
| 23 | 22 | ||
| 24 | make -j$(nproc) | 23 | ninja |
| 25 | 24 | ||
| 26 | ccache -s | 25 | ccache -s |
| 27 | 26 | ||
| 28 | ctest -VV -C Release | 27 | ctest -VV -C Release |
| 29 | 28 | ||
| 30 | make install DESTDIR=AppDir | 29 | DESTDIR="$PWD/AppDir" ninja install |
| 31 | rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester | 30 | rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester |
| 32 | 31 | ||
| 33 | # Download tools needed to build an AppImage | 32 | # Download tools needed to build an AppImage |
diff --git a/.ci/scripts/linux/exec.sh b/.ci/scripts/linux/exec.sh index a7deddeb3..fc4594d65 100644 --- a/.ci/scripts/linux/exec.sh +++ b/.ci/scripts/linux/exec.sh | |||
| @@ -4,5 +4,5 @@ mkdir -p "ccache" || true | |||
| 4 | chmod a+x ./.ci/scripts/linux/docker.sh | 4 | chmod a+x ./.ci/scripts/linux/docker.sh |
| 5 | # the UID for the container yuzu user is 1027 | 5 | # the UID for the container yuzu user is 1027 |
| 6 | sudo chown -R 1027 ./ | 6 | sudo chown -R 1027 ./ |
| 7 | docker run -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v $(pwd):/yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh $1 | 7 | docker run -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1" |
| 8 | sudo chown -R $UID ./ | 8 | sudo chown -R $UID ./ |
diff --git a/.ci/scripts/linux/upload.sh b/.ci/scripts/linux/upload.sh index 208cd0d04..3f2c2f208 100644..100755 --- a/.ci/scripts/linux/upload.sh +++ b/.ci/scripts/linux/upload.sh | |||
| @@ -24,6 +24,11 @@ cd build | |||
| 24 | wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/appimagetool-x86_64.AppImage | 24 | wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/appimagetool-x86_64.AppImage |
| 25 | chmod 755 appimagetool-x86_64.AppImage | 25 | chmod 755 appimagetool-x86_64.AppImage |
| 26 | 26 | ||
| 27 | # if FUSE is not available, then fallback to extract and run | ||
| 28 | if ! ./appimagetool-x86_64.AppImage --version; then | ||
| 29 | export APPIMAGE_EXTRACT_AND_RUN=1 | ||
| 30 | fi | ||
| 31 | |||
| 27 | if [ "${RELEASE_NAME}" = "mainline" ]; then | 32 | if [ "${RELEASE_NAME}" = "mainline" ]; then |
| 28 | # Generate update information if releasing to mainline | 33 | # Generate update information if releasing to mainline |
| 29 | ./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}" | 34 | ./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}" |
diff --git a/.ci/scripts/windows/docker.sh b/.ci/scripts/windows/docker.sh index f53d837d1..d670fe47d 100755 --- a/.ci/scripts/windows/docker.sh +++ b/.ci/scripts/windows/docker.sh | |||
| @@ -2,19 +2,23 @@ | |||
| 2 | 2 | ||
| 3 | set -e | 3 | set -e |
| 4 | 4 | ||
| 5 | cd /yuzu | 5 | #cd /yuzu |
| 6 | 6 | ||
| 7 | ccache -s | 7 | ccache -sv |
| 8 | 8 | ||
| 9 | mkdir build || true && cd build | 9 | mkdir -p "$HOME/.conan/profiles" |
| 10 | LDFLAGS="-fuse-ld=lld" | 10 | wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/default" -O "$HOME/.conan/profiles/default" |
| 11 | wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/settings.yml" -O "$HOME/.conan/settings.yml" | ||
| 12 | |||
| 13 | mkdir -p build && cd build | ||
| 14 | export LDFLAGS="-fuse-ld=lld" | ||
| 11 | # -femulated-tls required due to an incompatibility between GCC and Clang | 15 | # -femulated-tls required due to an incompatibility between GCC and Clang |
| 12 | # TODO(lat9nq): If this is widespread, we probably need to add this to CMakeLists where appropriate | 16 | # TODO(lat9nq): If this is widespread, we probably need to add this to CMakeLists where appropriate |
| 17 | export CXXFLAGS="-femulated-tls" | ||
| 13 | cmake .. \ | 18 | cmake .. \ |
| 14 | -DCMAKE_BUILD_TYPE=Release \ | 19 | -DCMAKE_BUILD_TYPE=Release \ |
| 15 | -DCMAKE_CXX_FLAGS="-femulated-tls" \ | 20 | -DCMAKE_TOOLCHAIN_FILE="${PWD}/../CMakeModules/MinGWClangCross.cmake" \ |
| 16 | -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../CMakeModules/MinGWClangCross.cmake" \ | 21 | -DDISPLAY_VERSION="$1" \ |
| 17 | -DDISPLAY_VERSION=$1 \ | ||
| 18 | -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \ | 22 | -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \ |
| 19 | -DENABLE_QT_TRANSLATION=ON \ | 23 | -DENABLE_QT_TRANSLATION=ON \ |
| 20 | -DUSE_CCACHE=ON \ | 24 | -DUSE_CCACHE=ON \ |
| @@ -23,7 +27,7 @@ cmake .. \ | |||
| 23 | -GNinja | 27 | -GNinja |
| 24 | ninja yuzu yuzu-cmd | 28 | ninja yuzu yuzu-cmd |
| 25 | 29 | ||
| 26 | ccache -s | 30 | ccache -sv |
| 27 | 31 | ||
| 28 | echo "Tests skipped" | 32 | echo "Tests skipped" |
| 29 | #ctest -VV -C Release | 33 | #ctest -VV -C Release |
diff --git a/.ci/scripts/windows/exec.sh b/.ci/scripts/windows/exec.sh index f904544bd..bf5c5fb63 100644 --- a/.ci/scripts/windows/exec.sh +++ b/.ci/scripts/windows/exec.sh | |||
| @@ -4,5 +4,5 @@ mkdir -p "ccache" || true | |||
| 4 | chmod a+x ./.ci/scripts/windows/docker.sh | 4 | chmod a+x ./.ci/scripts/windows/docker.sh |
| 5 | # the UID for the container yuzu user is 1027 | 5 | # the UID for the container yuzu user is 1027 |
| 6 | sudo chown -R 1027 ./ | 6 | sudo chown -R 1027 ./ |
| 7 | docker run -e CCACHE_DIR=/yuzu/ccache -v $(pwd):/yuzu yuzuemu/build-environments:linux-mingw /bin/bash -ex /yuzu/.ci/scripts/windows/docker.sh $1 | 7 | docker run -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-mingw /bin/bash -ex /yuzu/.ci/scripts/windows/docker.sh "$1" |
| 8 | sudo chown -R $UID ./ | 8 | sudo chown -R $UID ./ |
diff --git a/.ci/scripts/windows/upload.sh b/.ci/scripts/windows/upload.sh index 3c6a74218..3c6a74218 100644..100755 --- a/.ci/scripts/windows/upload.sh +++ b/.ci/scripts/windows/upload.sh | |||