log lfs state before and after caching

pull/273/head
Frostebite 2021-08-01 00:21:31 +01:00
parent f55e36866e
commit 6ecda4a358
4 changed files with 11 additions and 10 deletions

8
dist/index.js vendored
View File

@ -2154,7 +2154,7 @@ class RemoteBuilder {
return __awaiter(this, void 0, void 0, function* () {
core.info('Starting step 1/4 clone and restore cache)');
const lfsDirectory = `${this.repoPathFull}/.git/lfs`;
const testLFSFile = `${this.repoPathFull}/test-project/Assets/LFS_Test_File.jpg`;
const testLFSFile = `${this.projectPathFull}/Assets/LFS_Test_File.jpg`;
const repo = `https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git`;
const repo2 = `https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git`;
const repo3 = `https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
@ -2183,6 +2183,8 @@ class RemoteBuilder {
echo ' '
echo 'Initializing source repository for cloning with caching of LFS files'
${initializeSourceRepoForCaching}
ls -alh "${testLFSFile}"
ls -alh "${lfsDirectory}"
echo 'Source repository initialized'
echo ' '
echo 'Checking cache for the Unity project Library and git LFS files'
@ -2190,8 +2192,8 @@ class RemoteBuilder {
echo 'Caching complete'
cd ${this.repoPathFull}
git lfs pull
ls -l "${testLFSFile}"
ls -l ".git/lfs"
ls -alh "${testLFSFile}"
ls -alh "${lfsDirectory}"
zip -r lib-${buildUid}.zip ".git/lfs/.*"
#
echo 'buildVolumeReport.txt and buildVolumeReport.txt saved to repository workspace directory'

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -13,9 +13,6 @@ git clone --filter=blob:none --no-checkout $cloneUrl
git checkout $githubSha
echo "Checked out $githubSha"
ls -l ".git/lfs"
ls -l "$testLFSFile"
git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-id
md5sum .lfs-assets-id > .lfs-assets-id-sum

View File

@ -106,7 +106,7 @@ class RemoteBuilder {
core.info('Starting step 1/4 clone and restore cache)');
const lfsDirectory = `${this.repoPathFull}/.git/lfs`;
const testLFSFile = `${this.repoPathFull}/test-project/Assets/LFS_Test_File.jpg`;
const testLFSFile = `${this.projectPathFull}/Assets/LFS_Test_File.jpg`;
const repo = `https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git`;
const repo2 = `https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git`;
@ -140,6 +140,8 @@ class RemoteBuilder {
echo ' '
echo 'Initializing source repository for cloning with caching of LFS files'
${initializeSourceRepoForCaching}
ls -alh "${testLFSFile}"
ls -alh "${lfsDirectory}"
echo 'Source repository initialized'
echo ' '
echo 'Checking cache for the Unity project Library and git LFS files'
@ -147,8 +149,8 @@ class RemoteBuilder {
echo 'Caching complete'
cd ${this.repoPathFull}
git lfs pull
ls -l "${testLFSFile}"
ls -l ".git/lfs"
ls -alh "${testLFSFile}"
ls -alh "${lfsDirectory}"
zip -r lib-${buildUid}.zip ".git/lfs/.*"
#
echo 'buildVolumeReport.txt and buildVolumeReport.txt saved to repository workspace directory'