pull/310/head
Frostebite 2021-12-27 00:44:54 +00:00
parent 4c9d158bbc
commit 8c659a31b7
4 changed files with 15 additions and 11 deletions

12
dist/index.js vendored
View File

@ -631,6 +631,9 @@ class SetupRemoteRepository {
return __awaiter(this, void 0, void 0, function* () {
cloud_runner_logger_1.default.logCli(` `);
cloud_runner_logger_1.default.logCli(`LFS Caching`);
if (!fs_1.default.existsSync(lfsCacheFolder)) {
fs_1.default.mkdirSync(lfsCacheFolder);
}
process.chdir(lfsCacheFolder);
let latestLFSCacheFile;
if (fs_1.default.existsSync(`${SetupRemoteRepository.LFS_ASSETS_HASH}.zip`)) {
@ -652,9 +655,6 @@ class SetupRemoteRepository {
static libraryCaching(lfsCacheFolder, libraryCacheFolder) {
return __awaiter(this, void 0, void 0, function* () {
cloud_runner_logger_1.default.logCli(`Starting checks of cache for the Unity project Library and git LFS files`);
if (!fs_1.default.existsSync(lfsCacheFolder)) {
fs_1.default.mkdirSync(lfsCacheFolder);
}
if (!fs_1.default.existsSync(libraryCacheFolder)) {
fs_1.default.mkdirSync(libraryCacheFolder);
}
@ -2736,8 +2736,10 @@ class BuildStep {
cd "${cloud_runner_state_1.CloudRunnerState.repoPathFull}"
ls -lh "${cloud_runner_state_1.CloudRunnerState.repoPathFull}"
zip -r "build-$BUILDID.zip" "./${cloud_runner_state_1.CloudRunnerState.buildParams.buildPath}"
mv "build-$BUILDID.zip" "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/build-$BUILDID.zip"
ls ${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}
mv "build-$BUILDID.zip" "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/lib/build-$BUILDID.zip"
ls ${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/lib
echo " "
ls
`,
], `/${cloud_runner_state_1.CloudRunnerState.buildVolumeFolder}`, `/${cloud_runner_state_1.CloudRunnerState.projectPathFull}`, environmentVariables, secrets);
});

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -92,6 +92,9 @@ export class SetupRemoteRepository {
private static async lfsCaching(lfsCacheFolder: string) {
CloudRunnerLogger.logCli(` `);
CloudRunnerLogger.logCli(`LFS Caching`);
if (!fs.existsSync(lfsCacheFolder)) {
fs.mkdirSync(lfsCacheFolder);
}
process.chdir(lfsCacheFolder);
let latestLFSCacheFile;
if (fs.existsSync(`${SetupRemoteRepository.LFS_ASSETS_HASH}.zip`)) {
@ -115,9 +118,6 @@ export class SetupRemoteRepository {
private static async libraryCaching(lfsCacheFolder: string, libraryCacheFolder: string) {
CloudRunnerLogger.logCli(`Starting checks of cache for the Unity project Library and git LFS files`);
if (!fs.existsSync(lfsCacheFolder)) {
fs.mkdirSync(lfsCacheFolder);
}
if (!fs.existsSync(libraryCacheFolder)) {
fs.mkdirSync(libraryCacheFolder);
}

View File

@ -41,8 +41,10 @@ export class BuildStep implements StepInterface {
cd "${CloudRunnerState.repoPathFull}"
ls -lh "${CloudRunnerState.repoPathFull}"
zip -r "build-$BUILDID.zip" "./${CloudRunnerState.buildParams.buildPath}"
mv "build-$BUILDID.zip" "${CloudRunnerState.cacheFolderFull}/build-$BUILDID.zip"
ls ${CloudRunnerState.cacheFolderFull}
mv "build-$BUILDID.zip" "${CloudRunnerState.cacheFolderFull}/lib/build-$BUILDID.zip"
ls ${CloudRunnerState.cacheFolderFull}/lib
echo " "
ls
`,
],
`/${CloudRunnerState.buildVolumeFolder}`,