Collect lfs file into .lfs-asset-id file and print

pull/273/head
Frostebite 2021-07-01 23:17:09 +01:00
parent 2897eedefb
commit 8311c29267
3 changed files with 9 additions and 9 deletions

8
dist/index.js vendored
View File

@ -2096,16 +2096,16 @@ class RemoteBuilder {
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f" git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
git config --global filter.lfs.process "git-lfs filter-process --skip" git config --global filter.lfs.process "git-lfs filter-process --skip"
echo "Get source repo for project to be built and game-ci repo for utilties" echo "Get source repo for project to be built and game-ci repo for utilties"
git clone https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git ${buildUid}/${repositoryFolder} git clone https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git ${repoPathFull}
echo "Checkout" echo "Checkout"
git checkout $GITHUB_SHA --work-tree=${repoPathFull} git checkout $GITHUB_SHA --work-tree=${repoPathFull}
echo "Enable LFS" echo "Enable LFS"
git config --global filter.lfs.smudge "git-lfs smudge -- %f" git config --global filter.lfs.smudge "git-lfs smudge -- %f"
git config --global filter.lfs.process "git-lfs filter-process" git config --global filter.lfs.process "git-lfs filter-process"
echo "combine lfs hashes to one file, hash that" echo "combine lfs hashes to one file, hash that"
git lfs ls-files -l --work-tree=${repoPathFull} | cut -d' ' -f1 | sort > .lfs-assets-id find ${repoPathFull}/.git/lfs -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk
ls ls ${repoPathFull}
cat libraryCache.chk cat ${repoPathFull}/lfsSum.chk
echo "Get game.ci/unity-builder and game.ci/steam-deploy" echo "Get game.ci/unity-builder and game.ci/steam-deploy"
git clone https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull} git clone https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull}
git clone https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull} git clone https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -107,16 +107,16 @@ class RemoteBuilder {
echo "Get source repo for project to be built and game-ci repo for utilties" echo "Get source repo for project to be built and game-ci repo for utilties"
git clone https://${buildParameters.githubToken}@github.com/${ git clone https://${buildParameters.githubToken}@github.com/${
process.env.GITHUB_REPOSITORY process.env.GITHUB_REPOSITORY
}.git ${buildUid}/${repositoryFolder} }.git ${repoPathFull}
echo "Checkout" echo "Checkout"
git checkout $GITHUB_SHA --work-tree=${repoPathFull} git checkout $GITHUB_SHA --work-tree=${repoPathFull}
echo "Enable LFS" echo "Enable LFS"
git config --global filter.lfs.smudge "git-lfs smudge -- %f" git config --global filter.lfs.smudge "git-lfs smudge -- %f"
git config --global filter.lfs.process "git-lfs filter-process" git config --global filter.lfs.process "git-lfs filter-process"
echo "combine lfs hashes to one file, hash that" echo "combine lfs hashes to one file, hash that"
git lfs ls-files -l --work-tree=${repoPathFull} | cut -d' ' -f1 | sort > .lfs-assets-id find ${repoPathFull}/.git/lfs -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk
ls ls ${repoPathFull}
cat libraryCache.chk cat ${repoPathFull}/lfsSum.chk
echo "Get game.ci/unity-builder and game.ci/steam-deploy" echo "Get game.ci/unity-builder and game.ci/steam-deploy"
git clone https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull} git clone https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git ${builderPathFull}
git clone https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull} git clone https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git ${steamPathFull}