summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/scripts/clang/docker.sh6
-rw-r--r--.ci/scripts/clang/exec.sh2
-rwxr-xr-x[-rw-r--r--].ci/scripts/clang/upload.sh0
-rw-r--r--.ci/scripts/common/post-upload.sh6
-rw-r--r--.ci/scripts/format/exec.sh2
-rwxr-xr-x.ci/scripts/linux/docker.sh9
-rw-r--r--.ci/scripts/linux/exec.sh2
-rwxr-xr-x[-rw-r--r--].ci/scripts/linux/upload.sh5
-rwxr-xr-x.ci/scripts/windows/docker.sh20
-rw-r--r--.ci/scripts/windows/exec.sh2
-rwxr-xr-x[-rw-r--r--].ci/scripts/windows/upload.sh0
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.
4set -e 4set -e
5 5
6cd /yuzu
7
8ccache -s 6ccache -s
9 7
10mkdir build || true && cd build 8mkdir build || true && cd build
11cmake .. -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" 9cmake .. -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
13make -j$(nproc) 11ninja
14 12
15ccache -s 13ccache -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
4chmod a+x ./.ci/scripts/clang/docker.sh 4chmod 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
6sudo chown -R 1027 ./ 6sudo chown -R 1027 ./
7docker 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 7docker 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"
8sudo chown -R $UID ./ 8sudo 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 @@
4cp license.txt "$DIR_NAME" 4cp license.txt "$DIR_NAME"
5cp README.md "$DIR_NAME" 5cp README.md "$DIR_NAME"
6 6
7tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt 7if [[ -z "${NO_SOURCE_PACK}" ]]; then
8cp "${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"
10fi
9 11
10tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME" 12tar $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 @@
3chmod a+x ./.ci/scripts/format/docker.sh 3chmod 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
5sudo chown -R 1027 ./ 5sudo chown -R 1027 ./
6docker run -v $(pwd):/yuzu yuzuemu/build-environments:linux-clang-format /bin/bash -ex /yuzu/.ci/scripts/format/docker.sh 6docker run -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-clang-format /bin/bash -ex /yuzu/.ci/scripts/format/docker.sh
7sudo chown -R $UID ./ 7sudo 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.
4set -e 4set -e
5 5
6cd /yuzu
7
8ccache -s 6ccache -s
9 7
10mkdir build || true && cd build 8mkdir 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
24make -j$(nproc) 23ninja
25 24
26ccache -s 25ccache -s
27 26
28ctest -VV -C Release 27ctest -VV -C Release
29 28
30make install DESTDIR=AppDir 29DESTDIR="$PWD/AppDir" ninja install
31rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester 30rm -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
4chmod a+x ./.ci/scripts/linux/docker.sh 4chmod 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
6sudo chown -R 1027 ./ 6sudo chown -R 1027 ./
7docker 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 7docker 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"
8sudo chown -R $UID ./ 8sudo 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
24wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/appimagetool-x86_64.AppImage 24wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/appimagetool-x86_64.AppImage
25chmod 755 appimagetool-x86_64.AppImage 25chmod 755 appimagetool-x86_64.AppImage
26 26
27# if FUSE is not available, then fallback to extract and run
28if ! ./appimagetool-x86_64.AppImage --version; then
29 export APPIMAGE_EXTRACT_AND_RUN=1
30fi
31
27if [ "${RELEASE_NAME}" = "mainline" ]; then 32if [ "${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
3set -e 3set -e
4 4
5cd /yuzu 5#cd /yuzu
6 6
7ccache -s 7ccache -sv
8 8
9mkdir build || true && cd build 9mkdir -p "$HOME/.conan/profiles"
10LDFLAGS="-fuse-ld=lld" 10wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/default" -O "$HOME/.conan/profiles/default"
11wget -c "https://github.com/yuzu-emu/build-environments/raw/master/linux-mingw/settings.yml" -O "$HOME/.conan/settings.yml"
12
13mkdir -p build && cd build
14export 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
17export CXXFLAGS="-femulated-tls"
13cmake .. \ 18cmake .. \
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
24ninja yuzu yuzu-cmd 28ninja yuzu yuzu-cmd
25 29
26ccache -s 30ccache -sv
27 31
28echo "Tests skipped" 32echo "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
4chmod a+x ./.ci/scripts/windows/docker.sh 4chmod 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
6sudo chown -R 1027 ./ 6sudo chown -R 1027 ./
7docker run -e CCACHE_DIR=/yuzu/ccache -v $(pwd):/yuzu yuzuemu/build-environments:linux-mingw /bin/bash -ex /yuzu/.ci/scripts/windows/docker.sh $1 7docker 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"
8sudo chown -R $UID ./ 8sudo 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