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

pull/273/head
Frostebite 2021-07-02 22:50:53 +01:00
parent 8311c29267
commit dc3087fd64
3 changed files with 9 additions and 9 deletions

8
dist/index.js vendored
View File

@ -2082,10 +2082,10 @@ class RemoteBuilder {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
core.info('Starting step 1/4 clone and restore cache)'); core.info('Starting step 1/4 clone and restore cache)');
const repoPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}`; const repoPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}`;
const builderPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}/builder`; const cacheFolderFull = `/${buildVolumeFolder}/${cacheFolder}`;
const steamPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}/steam`; const builderPathFull = `${repoPathFull}/builder`;
const steamPathFull = `${repoPathFull}/steam`;
const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`; const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`;
const cacheFolderFull = `${buildVolumeFolder}/${cacheFolder}`;
const libraryFolderFull = `${projectPathFull}/Library`; const libraryFolderFull = `${projectPathFull}/Library`;
yield this.RemoteBuilderProviderPlatform.runBuildTask(buildUid, 'alpine/git', [ yield this.RemoteBuilderProviderPlatform.runBuildTask(buildUid, 'alpine/git', [
`apk update; `apk update;
@ -2103,7 +2103,7 @@ class RemoteBuilder {
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"
find ${repoPathFull}/.git/lfs -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk find ${repoPathFull}/.git/lfs/ -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk
ls ${repoPathFull} ls ${repoPathFull}
cat ${repoPathFull}/lfsSum.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"

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -88,10 +88,10 @@ class RemoteBuilder {
) { ) {
core.info('Starting step 1/4 clone and restore cache)'); core.info('Starting step 1/4 clone and restore cache)');
const repoPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}`; const repoPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}`;
const builderPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}/builder`; const cacheFolderFull = `/${buildVolumeFolder}/${cacheFolder}`;
const steamPathFull = `/${buildVolumeFolder}/${buildUid}/${repositoryFolder}/steam`; const builderPathFull = `${repoPathFull}/builder`;
const steamPathFull = `${repoPathFull}/steam`;
const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`; const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`;
const cacheFolderFull = `${buildVolumeFolder}/${cacheFolder}`;
const libraryFolderFull = `${projectPathFull}/Library`; const libraryFolderFull = `${projectPathFull}/Library`;
await this.RemoteBuilderProviderPlatform.runBuildTask( await this.RemoteBuilderProviderPlatform.runBuildTask(
buildUid, buildUid,
@ -114,7 +114,7 @@ class RemoteBuilder {
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"
find ${repoPathFull}/.git/lfs -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk find ${repoPathFull}/.git/lfs/ -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk
ls ${repoPathFull} ls ${repoPathFull}
cat ${repoPathFull}/lfsSum.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"