summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2022-09-16 12:47:38 -0400
committerGravatar GitHub2022-09-16 12:47:38 -0400
commit882dfa36ae25fc6d0167c2c0fbce1e19c1406fae (patch)
tree0d4ccca773814ac3c1c2dc98a5bae11acd0295cb
parentMerge pull request #8911 from lioncash/cexpr-string (diff)
parentpatreon step2: Use jobs to build for Windows and Linux (diff)
downloadyuzu-882dfa36ae25fc6d0167c2c0fbce1e19c1406fae.tar.gz
yuzu-882dfa36ae25fc6d0167c2c0fbce1e19c1406fae.tar.xz
yuzu-882dfa36ae25fc6d0167c2c0fbce1e19c1406fae.zip
Merge pull request #6667 from lat9nq/ea-appimage
ci,linux: Support Patreon releases
-rwxr-xr-x.ci/scripts/linux/upload.sh25
-rw-r--r--.ci/yuzu-patreon-step2.yml25
2 files changed, 42 insertions, 8 deletions
diff --git a/.ci/scripts/linux/upload.sh b/.ci/scripts/linux/upload.sh
index 8173c5728..e0f336427 100755
--- a/.ci/scripts/linux/upload.sh
+++ b/.ci/scripts/linux/upload.sh
@@ -5,21 +5,24 @@
5 5
6. .ci/scripts/common/pre-upload.sh 6. .ci/scripts/common/pre-upload.sh
7 7
8APPIMAGE_NAME="yuzu-${GITDATE}-${GITREV}.AppImage" 8APPIMAGE_NAME="yuzu-${RELEASE_NAME}-${GITDATE}-${GITREV}.AppImage"
9REV_NAME="yuzu-linux-${GITDATE}-${GITREV}" 9BASE_NAME="yuzu-linux"
10REV_NAME="${BASE_NAME}-${GITDATE}-${GITREV}"
10ARCHIVE_NAME="${REV_NAME}.tar.xz" 11ARCHIVE_NAME="${REV_NAME}.tar.xz"
11COMPRESSION_FLAGS="-cJvf" 12COMPRESSION_FLAGS="-cJvf"
12 13
13if [ "${RELEASE_NAME}" = "mainline" ]; then 14if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then
14 DIR_NAME="${REV_NAME}" 15 DIR_NAME="${BASE_NAME}-${RELEASE_NAME}"
15else 16else
16 DIR_NAME="${REV_NAME}_${RELEASE_NAME}" 17 DIR_NAME="${REV_NAME}-${RELEASE_NAME}"
17fi 18fi
18 19
19mkdir "$DIR_NAME" 20mkdir "$DIR_NAME"
20 21
21cp build/bin/yuzu-cmd "$DIR_NAME" 22cp build/bin/yuzu-cmd "$DIR_NAME"
22cp build/bin/yuzu "$DIR_NAME" 23if [ "${RELEASE_NAME}" != "early-access" ] && [ "${RELEASE_NAME}" != "mainline" ]; then
24 cp build/bin/yuzu "$DIR_NAME"
25fi
23 26
24# Build an AppImage 27# Build an AppImage
25cd build 28cd build
@@ -32,6 +35,11 @@ if ! ./appimagetool-x86_64.AppImage --version; then
32 export APPIMAGE_EXTRACT_AND_RUN=1 35 export APPIMAGE_EXTRACT_AND_RUN=1
33fi 36fi
34 37
38# Don't let AppImageLauncher ask to integrate EA
39if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then
40 echo "X-AppImage-Integrate=false" >> AppDir/org.yuzu_emu.yuzu.desktop
41fi
42
35if [ "${RELEASE_NAME}" = "mainline" ]; then 43if [ "${RELEASE_NAME}" = "mainline" ]; then
36 # Generate update information if releasing to mainline 44 # Generate update information if releasing to mainline
37 ./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}" 45 ./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}"
@@ -46,4 +54,9 @@ if [ -f "build/${APPIMAGE_NAME}.zsync" ]; then
46 cp "build/${APPIMAGE_NAME}.zsync" "${ARTIFACTS_DIR}/" 54 cp "build/${APPIMAGE_NAME}.zsync" "${ARTIFACTS_DIR}/"
47fi 55fi
48 56
57# Copy the AppImage to the general release directory and remove git revision info
58if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then
59 cp "build/${APPIMAGE_NAME}" "${DIR_NAME}/yuzu-${RELEASE_NAME}.AppImage"
60fi
61
49. .ci/scripts/common/post-upload.sh 62. .ci/scripts/common/post-upload.sh
diff --git a/.ci/yuzu-patreon-step2.yml b/.ci/yuzu-patreon-step2.yml
index 5d5b140fd..71a23ebe6 100644
--- a/.ci/yuzu-patreon-step2.yml
+++ b/.ci/yuzu-patreon-step2.yml
@@ -11,9 +11,30 @@ stages:
11- stage: build 11- stage: build
12 displayName: 'build' 12 displayName: 'build'
13 jobs: 13 jobs:
14 - job: build 14 - job: linux
15 timeoutInMinutes: 120 15 timeoutInMinutes: 120
16 displayName: 'windows-msvc' 16 displayName: 'linux'
17 pool:
18 vmImage: ubuntu-latest
19 strategy:
20 maxParallel: 10
21 matrix:
22 linux:
23 BuildSuffix: 'linux'
24 ScriptFolder: 'linux'
25 steps:
26 - template: ./templates/sync-source.yml
27 parameters:
28 artifactSource: $(parameters.artifactSource)
29 needSubmodules: 'true'
30 - template: ./templates/build-single.yml
31 parameters:
32 artifactSource: 'false'
33 cache: $(parameters.cache)
34 version: $(DisplayVersion)
35 - job: msvc
36 timeoutInMinutes: 120
37 displayName: 'windows'
17 pool: 38 pool:
18 vmImage: windows-2022 39 vmImage: windows-2022
19 steps: 40 steps: