From d4a1afba4b94379b39434fe9623a26e0f08bb4aa Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Mon, 11 Nov 2019 22:32:22 -0500 Subject: [PATCH] ci: Package source with builds --- .ci/scripts/common/post-upload.sh | 4 ++++ .ci/scripts/windows/upload.ps1 | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.ci/scripts/common/post-upload.sh b/.ci/scripts/common/post-upload.sh index b80868635..e46ee0abb 100644 --- a/.ci/scripts/common/post-upload.sh +++ b/.ci/scripts/common/post-upload.sh @@ -4,9 +4,13 @@ cp license.txt "$DIR_NAME" cp README.md "$DIR_NAME" +tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt +cp "${REV_NAME}-source.tar.xz" "$DIR_NAME" + tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME" mv "$DIR_NAME" $RELEASE_NAME +mv "${REV_NAME}-source.tar.xz" $RELEASE_NAME 7z a "$REV_NAME.7z" $RELEASE_NAME diff --git a/.ci/scripts/windows/upload.ps1 b/.ci/scripts/windows/upload.ps1 index e34e6681f..f0d9d5880 100644 --- a/.ci/scripts/windows/upload.ps1 +++ b/.ci/scripts/windows/upload.ps1 @@ -14,6 +14,7 @@ $MSVC_BUILD_PDB = "yuzu-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip" -replace $MSVC_SEVENZIP = "yuzu-windows-msvc-$GITDATE-$GITREV.7z" -replace " ", "" $MSVC_TAR = "yuzu-windows-msvc-$GITDATE-$GITREV.tar" -replace " ", "" $MSVC_TARXZ = "yuzu-windows-msvc-$GITDATE-$GITREV.tar.xz" -replace " ", "" +$MSVC_SOURCE = "yuzu-windows-msvc-source-$GITDATE-$GITREV.tar.xz" -replace " ", "" $env:BUILD_ZIP = $MSVC_BUILD_ZIP $env:BUILD_SYMBOLS = $MSVC_BUILD_PDB @@ -34,6 +35,8 @@ Get-ChildItem "$BUILD_DIR" -Recurse -Filter "yuzu*.exe" | Copy-Item -destination Get-ChildItem "$BUILD_DIR" -Recurse -Filter "QtWebEngineProcess*.exe" | Copy-Item -destination $RELEASE_DIST Copy-Item .\license.txt -Destination $RELEASE_DIST Copy-Item .\README.md -Destination $RELEASE_DIST +Copy-Item .\src -Recurse -Destination $RELEASE_DIST +Copy-Item .\externals -Recurse -Destination $RELEASE_DIST 7z a -tzip $MSVC_BUILD_ZIP $RELEASE_DIST\* 7z a $MSVC_SEVENZIP $RELEASE_DIST