diff options
| author | 2022-07-31 01:25:40 -0400 | |
|---|---|---|
| committer | 2022-08-09 00:17:30 -0400 | |
| commit | 1f7e2d1cadf160d0d516567b6970cdd876c29c6d (patch) | |
| tree | 855f8f6fba3a7ef213a7311dad53e61edc4b4233 | |
| parent | Merge pull request #8734 from liamwhite/bors-is-my-best-friend (diff) | |
| download | yuzu-1f7e2d1cadf160d0d516567b6970cdd876c29c6d.tar.gz yuzu-1f7e2d1cadf160d0d516567b6970cdd876c29c6d.tar.xz yuzu-1f7e2d1cadf160d0d516567b6970cdd876c29c6d.zip | |
ci: Graft source when archiving
Instead of including yuzu and all the sources it uses directly, include
only what specifically belongs to yuzu. Submodules can be downloaded
separately later using git since a shallow clone includes minimally all
the repository information needed for it.
| -rw-r--r-- | .ci/scripts/common/post-upload.sh | 3 | ||||
| -rw-r--r-- | .ci/scripts/windows/upload.ps1 | 10 |
2 files changed, 5 insertions, 8 deletions
diff --git a/.ci/scripts/common/post-upload.sh b/.ci/scripts/common/post-upload.sh index 7f910b2b3..576f1ffaa 100644 --- a/.ci/scripts/common/post-upload.sh +++ b/.ci/scripts/common/post-upload.sh | |||
| @@ -8,7 +8,8 @@ cp LICENSE.txt "$DIR_NAME" | |||
| 8 | cp README.md "$DIR_NAME" | 8 | cp README.md "$DIR_NAME" |
| 9 | 9 | ||
| 10 | if [[ -z "${NO_SOURCE_PACK}" ]]; then | 10 | if [[ -z "${NO_SOURCE_PACK}" ]]; then |
| 11 | tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md LICENSE.txt | 11 | git clone --depth 1 file://$(readlink -e .) ${REV_NAME}-source |
| 12 | tar -cJvf "${REV_NAME}-source.tar.xz" ${REV_NAME}-source | ||
| 12 | cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME" | 13 | cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME" |
| 13 | fi | 14 | fi |
| 14 | 15 | ||
diff --git a/.ci/scripts/windows/upload.ps1 b/.ci/scripts/windows/upload.ps1 index f2368be6f..d463281de 100644 --- a/.ci/scripts/windows/upload.ps1 +++ b/.ci/scripts/windows/upload.ps1 | |||
| @@ -42,14 +42,10 @@ mkdir $RELEASE_DIST | |||
| 42 | mkdir $MSVC_SOURCE | 42 | mkdir $MSVC_SOURCE |
| 43 | mkdir "artifacts" | 43 | mkdir "artifacts" |
| 44 | 44 | ||
| 45 | $CURRENT_DIR = Convert-Path . | ||
| 46 | |||
| 45 | # Build a tar.xz for the source of the release | 47 | # Build a tar.xz for the source of the release |
| 46 | Copy-Item .\LICENSE.txt -Destination $MSVC_SOURCE | 48 | git clone --depth 1 file://$CURRENT_DIR $MSVC_SOURCE |
| 47 | Copy-Item .\README.md -Destination $MSVC_SOURCE | ||
| 48 | Copy-Item .\CMakeLists.txt -Destination $MSVC_SOURCE | ||
| 49 | Copy-Item .\src -Recurse -Destination $MSVC_SOURCE | ||
| 50 | Copy-Item .\externals -Recurse -Destination $MSVC_SOURCE | ||
| 51 | Copy-Item .\dist -Recurse -Destination $MSVC_SOURCE | ||
| 52 | Copy-Item .\CMakeModules -Recurse -Destination $MSVC_SOURCE | ||
| 53 | 7z a -r -ttar $MSVC_SOURCE_TAR $MSVC_SOURCE | 49 | 7z a -r -ttar $MSVC_SOURCE_TAR $MSVC_SOURCE |
| 54 | 7z a -r -txz $MSVC_SOURCE_TARXZ $MSVC_SOURCE_TAR | 50 | 7z a -r -txz $MSVC_SOURCE_TARXZ $MSVC_SOURCE_TAR |
| 55 | 51 | ||