diff options
| author | 2022-09-16 12:47:38 -0400 | |
|---|---|---|
| committer | 2022-09-16 12:47:38 -0400 | |
| commit | 882dfa36ae25fc6d0167c2c0fbce1e19c1406fae (patch) | |
| tree | 0d4ccca773814ac3c1c2dc98a5bae11acd0295cb /.ci | |
| parent | Merge pull request #8911 from lioncash/cexpr-string (diff) | |
| parent | patreon step2: Use jobs to build for Windows and Linux (diff) | |
| download | yuzu-882dfa36ae25fc6d0167c2c0fbce1e19c1406fae.tar.gz yuzu-882dfa36ae25fc6d0167c2c0fbce1e19c1406fae.tar.xz yuzu-882dfa36ae25fc6d0167c2c0fbce1e19c1406fae.zip | |
Merge pull request #6667 from lat9nq/ea-appimage
ci,linux: Support Patreon releases
Diffstat (limited to '.ci')
| -rwxr-xr-x | .ci/scripts/linux/upload.sh | 25 | ||||
| -rw-r--r-- | .ci/yuzu-patreon-step2.yml | 25 |
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 | ||
| 8 | APPIMAGE_NAME="yuzu-${GITDATE}-${GITREV}.AppImage" | 8 | APPIMAGE_NAME="yuzu-${RELEASE_NAME}-${GITDATE}-${GITREV}.AppImage" |
| 9 | REV_NAME="yuzu-linux-${GITDATE}-${GITREV}" | 9 | BASE_NAME="yuzu-linux" |
| 10 | REV_NAME="${BASE_NAME}-${GITDATE}-${GITREV}" | ||
| 10 | ARCHIVE_NAME="${REV_NAME}.tar.xz" | 11 | ARCHIVE_NAME="${REV_NAME}.tar.xz" |
| 11 | COMPRESSION_FLAGS="-cJvf" | 12 | COMPRESSION_FLAGS="-cJvf" |
| 12 | 13 | ||
| 13 | if [ "${RELEASE_NAME}" = "mainline" ]; then | 14 | if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then |
| 14 | DIR_NAME="${REV_NAME}" | 15 | DIR_NAME="${BASE_NAME}-${RELEASE_NAME}" |
| 15 | else | 16 | else |
| 16 | DIR_NAME="${REV_NAME}_${RELEASE_NAME}" | 17 | DIR_NAME="${REV_NAME}-${RELEASE_NAME}" |
| 17 | fi | 18 | fi |
| 18 | 19 | ||
| 19 | mkdir "$DIR_NAME" | 20 | mkdir "$DIR_NAME" |
| 20 | 21 | ||
| 21 | cp build/bin/yuzu-cmd "$DIR_NAME" | 22 | cp build/bin/yuzu-cmd "$DIR_NAME" |
| 22 | cp build/bin/yuzu "$DIR_NAME" | 23 | if [ "${RELEASE_NAME}" != "early-access" ] && [ "${RELEASE_NAME}" != "mainline" ]; then |
| 24 | cp build/bin/yuzu "$DIR_NAME" | ||
| 25 | fi | ||
| 23 | 26 | ||
| 24 | # Build an AppImage | 27 | # Build an AppImage |
| 25 | cd build | 28 | cd 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 |
| 33 | fi | 36 | fi |
| 34 | 37 | ||
| 38 | # Don't let AppImageLauncher ask to integrate EA | ||
| 39 | if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then | ||
| 40 | echo "X-AppImage-Integrate=false" >> AppDir/org.yuzu_emu.yuzu.desktop | ||
| 41 | fi | ||
| 42 | |||
| 35 | if [ "${RELEASE_NAME}" = "mainline" ]; then | 43 | if [ "${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}/" |
| 47 | fi | 55 | fi |
| 48 | 56 | ||
| 57 | # Copy the AppImage to the general release directory and remove git revision info | ||
| 58 | if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then | ||
| 59 | cp "build/${APPIMAGE_NAME}" "${DIR_NAME}/yuzu-${RELEASE_NAME}.AppImage" | ||
| 60 | fi | ||
| 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: |