diff options
author | lat9nq <lat9nq@gmail.com> | 2022-07-31 01:25:40 -0400 |
---|---|---|
committer | lat9nq <lat9nq@gmail.com> | 2022-08-09 00:17:30 -0400 |
commit | 1f7e2d1cadf160d0d516567b6970cdd876c29c6d (patch) | |
tree | 855f8f6fba3a7ef213a7311dad53e61edc4b4233 /.ci/scripts/common/post-upload.sh | |
parent | b1d61cd02534a421feee75fd2a1c2e6dea8e54b0 (diff) |
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.
Diffstat (limited to '.ci/scripts/common/post-upload.sh')
-rw-r--r-- | .ci/scripts/common/post-upload.sh | 3 |
1 files changed, 2 insertions, 1 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" cp README.md "$DIR_NAME" if [[ -z "${NO_SOURCE_PACK}" ]]; then - tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md LICENSE.txt + git clone --depth 1 file://$(readlink -e .) ${REV_NAME}-source + tar -cJvf "${REV_NAME}-source.tar.xz" ${REV_NAME}-source cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME" fi |