forked from ShuriZma/suyu
1
0
Fork 0

Merge pull request #8686 from lat9nq/graft-source

ci: Graft source when archiving
This commit is contained in:
Morph 2022-08-11 00:00:52 -04:00 committed by GitHub
commit 72bf844110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -8,8 +8,10 @@ cp LICENSE.txt "$DIR_NAME"
cp README.md "$DIR_NAME" cp README.md "$DIR_NAME"
if [[ -z "${NO_SOURCE_PACK}" ]]; then 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" cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
cp -v "${REV_NAME}-source.tar.xz" "${ARTIFACTS_DIR}/"
fi fi
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME" tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"

View File

@ -42,14 +42,10 @@ mkdir $RELEASE_DIST
mkdir $MSVC_SOURCE mkdir $MSVC_SOURCE
mkdir "artifacts" mkdir "artifacts"
$CURRENT_DIR = Convert-Path .
# Build a tar.xz for the source of the release # Build a tar.xz for the source of the release
Copy-Item .\LICENSE.txt -Destination $MSVC_SOURCE git clone --depth 1 file://$CURRENT_DIR $MSVC_SOURCE
Copy-Item .\README.md -Destination $MSVC_SOURCE
Copy-Item .\CMakeLists.txt -Destination $MSVC_SOURCE
Copy-Item .\src -Recurse -Destination $MSVC_SOURCE
Copy-Item .\externals -Recurse -Destination $MSVC_SOURCE
Copy-Item .\dist -Recurse -Destination $MSVC_SOURCE
Copy-Item .\CMakeModules -Recurse -Destination $MSVC_SOURCE
7z a -r -ttar $MSVC_SOURCE_TAR $MSVC_SOURCE 7z a -r -ttar $MSVC_SOURCE_TAR $MSVC_SOURCE
7z a -r -txz $MSVC_SOURCE_TARXZ $MSVC_SOURCE_TAR 7z a -r -txz $MSVC_SOURCE_TARXZ $MSVC_SOURCE_TAR