test lfs file

pull/273/head
Frostebite 2021-07-13 00:37:23 +01:00
parent 5679b4192d
commit 8639a6a8b9
5 changed files with 9 additions and 15 deletions

1
dist/index.js vendored
View File

@ -2115,7 +2115,6 @@ class RemoteBuilder {
git clone ${repo2} ${steamPathFull}
#
${builderPathFull}/dist/remote-builder/cloneNoLFS.sh ${repoPathFull} ${repo3} $GITHUB_SHA
${builderPathFull}/dist/remote-builder/combineLFSHash.sh ${repoPathFull}
${builderPathFull}/dist/remote-builder/setupCache.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull}
${builderPathFull}/dist/remote-builder/handleCaching.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull} ${purgeRemoteCache}
#

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -9,8 +9,7 @@ cd $repoPathFull
echo ' '
echo "Cloning the repository being built:"
# DISABLE LFS
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
git config --global filter.lfs.process "git-lfs filter-process --skip"
export GIT_LFS_SKIP_SMUDGE=1
# Init new repo and setup origin
git init
git remote add origin $cloneUrl
@ -18,10 +17,15 @@ git remote add origin $cloneUrl
git fetch origin
git reset --hard $githubSha
# ENABLE LFS
git config --global filter.lfs.smudge "git-lfs smudge -- %f"
git config --global filter.lfs.process "git-lfs filter-process"
export GIT_LFS_SKIP_SMUDGE=0
tree
echo ' '
# List git lfs files
git lfs ls-files --all
echo ' '
git lfs ls-files -l | cut -d ' ' -f1 | sort
echo ' '
git lfs ls-files -l | cut -d ' ' -f1 | sort > $1/.lfs-assets-id
echo ' '

View File

@ -1,8 +0,0 @@
#!/bin/sh
echo "Combining LFS hash files into one hash, this can be used to cache LFS files"
git lfs ls-files -l | cut -d' ' -f1 | sort > $1/.lfs-assets-id
echo ' '
echo 'combined file:'
cat $1/.lfs-assets-id
echo ' '

View File

@ -125,7 +125,6 @@ class RemoteBuilder {
git clone ${repo2} ${steamPathFull}
#
${builderPathFull}/dist/remote-builder/cloneNoLFS.sh ${repoPathFull} ${repo3} $GITHUB_SHA
${builderPathFull}/dist/remote-builder/combineLFSHash.sh ${repoPathFull}
${builderPathFull}/dist/remote-builder/setupCache.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull}
${builderPathFull}/dist/remote-builder/handleCaching.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull} ${purgeRemoteCache}
#