Relative paths for zipping

pull/289/head
Frostebite 2021-08-21 05:01:15 +00:00 committed by GitHub
parent fcf0de8159
commit ab463665ba
4 changed files with 12 additions and 10 deletions

View File

@ -29,7 +29,7 @@ if [ -f "$libraryCacheFolder/$latestLibraryCacheFile" ]; then
echo "Library cache exists $"
mkdir -p "$libraryFolderFull"
unzip -q "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull"
ls "$libraryFolderFull"
tree "$libraryFolderFull"
fi
echo ' '
@ -72,13 +72,15 @@ echo ' '
cd "$repoPathFull"
git lfs pull
echo 'pulled latest LFS files'
zip -q -r "$LFS_ASSETS_HASH.zip" "$gitLFSDestinationFolder"
cd "$gitLFSDestinationFolder/.."
zip -q -r "$LFS_ASSETS_HASH.zip" "./lfs"
cp "$LFS_ASSETS_HASH.zip" "$lfsCacheFolder"
echo "copied $LFS_ASSETS_HASH to $lfsCacheFolder"
echo ' '
# purge cache
if [ "$purgeCloudRunnerCache" == "true" ]; then
echo ' '
echo "purging the entire cache"
rm -r "$cacheFolderFull"
echo ' '

6
dist/index.js vendored
View File

@ -1034,12 +1034,12 @@ class CloudRunner {
apk add zip tree -q
${process.env.DEBUG ? '' : '#'}tree -L 4 "$repoPathFull"
${process.env.DEBUG ? '' : '#'}ls -lh "$repoPathFull"
cd "$libraryFolderFull"
zip -r "lib-$BUILDID.zip" "$libraryFolderFull"
cd "$libraryFolderFull/.."
zip -r "lib-$BUILDID.zip" "./Library"
mv "lib-$BUILDID.zip" "/$cacheFolderFull/lib"
cd "$repoPathFull"
ls -lh "$repoPathFull"
zip -r "build-$BUILDID.zip" "$repoPathFull/${CloudRunner.buildParams.buildPath}"
zip -r "build-$BUILDID.zip" "./${CloudRunner.buildParams.buildPath}"
mv "build-$BUILDID.zip" "/$cacheFolderFull/build-$BUILDID.zip"
${process.env.DEBUG ? '' : '#'}tree -L 4 "/$cacheFolderFull"
${process.env.DEBUG ? '' : '#'}tree -L 4 "/$cacheFolderFull/.."

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -199,12 +199,12 @@ class CloudRunner {
apk add zip tree -q
${process.env.DEBUG ? '' : '#'}tree -L 4 "$repoPathFull"
${process.env.DEBUG ? '' : '#'}ls -lh "$repoPathFull"
cd "$libraryFolderFull"
zip -r "lib-$BUILDID.zip" "$libraryFolderFull"
cd "$libraryFolderFull/.."
zip -r "lib-$BUILDID.zip" "./Library"
mv "lib-$BUILDID.zip" "/$cacheFolderFull/lib"
cd "$repoPathFull"
ls -lh "$repoPathFull"
zip -r "build-$BUILDID.zip" "$repoPathFull/${CloudRunner.buildParams.buildPath}"
zip -r "build-$BUILDID.zip" "./${CloudRunner.buildParams.buildPath}"
mv "build-$BUILDID.zip" "/$cacheFolderFull/build-$BUILDID.zip"
${process.env.DEBUG ? '' : '#'}tree -L 4 "/$cacheFolderFull"
${process.env.DEBUG ? '' : '#'}tree -L 4 "/$cacheFolderFull/.."