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

pull/273/head
Frostebite 2021-07-02 23:39:32 +01:00
parent 7545525490
commit c75a9f3ed0
3 changed files with 9 additions and 9 deletions

8
dist/index.js vendored
View File

@ -2097,21 +2097,21 @@ class RemoteBuilder {
mkdir ${builderPathFull} mkdir ${builderPathFull}
mkdir ${repoPathFull} mkdir ${repoPathFull}
mkdir ${steamPathFull} mkdir ${steamPathFull}
echo "Clone game.ci/unity-builder and game.ci/steam-deploy" echo "Cloning utility repositories required for building:"
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}
cd ${repoPathFull} cd ${repoPathFull}
# DISABLE LFS # DISABLE LFS
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 "Clone repo being built while LFS disabled" echo "Cloning the repository being built:"
git init git init
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
git fetch origin git fetch origin
git reset --hard $GITHUB_SHA git reset --hard $GITHUB_SHA
echo "combine lfs hashes to one file, hash that" echo "Combining LFS hash files into one hash, this is used as the cache key:"
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.chk git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.chk
ls ${repoPathFull} -a ls -a
cat ${repoPathFull}/lfsSum.chk cat ${repoPathFull}/lfsSum.chk
# time to handle library cache # time to handle library cache
if [ ! -d ${cacheFolderFull} ]; then if [ ! -d ${cacheFolderFull} ]; then

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -106,21 +106,21 @@ class RemoteBuilder {
mkdir ${builderPathFull} mkdir ${builderPathFull}
mkdir ${repoPathFull} mkdir ${repoPathFull}
mkdir ${steamPathFull} mkdir ${steamPathFull}
echo "Clone game.ci/unity-builder and game.ci/steam-deploy" echo "Cloning utility repositories required for building:"
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}
cd ${repoPathFull} cd ${repoPathFull}
# DISABLE LFS # DISABLE LFS
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 "Clone repo being built while LFS disabled" echo "Cloning the repository being built:"
git init git init
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
git fetch origin git fetch origin
git reset --hard $GITHUB_SHA git reset --hard $GITHUB_SHA
echo "combine lfs hashes to one file, hash that" echo "Combining LFS hash files into one hash, this is used as the cache key:"
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.chk git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.chk
ls ${repoPathFull} -a ls -a
cat ${repoPathFull}/lfsSum.chk cat ${repoPathFull}/lfsSum.chk
# time to handle library cache # time to handle library cache
if [ ! -d ${cacheFolderFull} ]; then if [ ! -d ${cacheFolderFull} ]; then