Fix lib caching
parent
5c90988bb9
commit
c64de162ff
|
|
@ -629,7 +629,6 @@ class SetupRemoteRepository {
|
|||
}
|
||||
static lfsCaching(lfsCacheFolder) {
|
||||
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);
|
||||
|
|
@ -654,7 +653,6 @@ class SetupRemoteRepository {
|
|||
}
|
||||
static libraryCaching(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`);
|
||||
cloud_runner_logger_1.default.logCli(`Library Caching`);
|
||||
//if the unity git project has included the library delete it and echo a warning
|
||||
if (fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.libraryFolderFull)) {
|
||||
|
|
@ -668,7 +666,6 @@ class SetupRemoteRepository {
|
|||
const latestLibraryCacheFile = yield (yield remote_client_system_1.RemoteClientSystem.Run(`ls -t "${libraryCacheFolder}" | grep .zip$ | head -1`)).replace(`\n`, ``);
|
||||
cloud_runner_logger_1.default.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
|
||||
process.chdir(libraryCacheFolder);
|
||||
yield remote_client_system_1.RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
|
||||
if (fs_1.default.existsSync(latestLibraryCacheFile)) {
|
||||
cloud_runner_logger_1.default.logCli(`Library cache exists`);
|
||||
yield remote_client_system_1.RemoteClientSystem.Run(`unzip -q "${latestLibraryCacheFile}" -d "${cloud_runner_state_1.CloudRunnerState.libraryFolderFull}"`);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -90,7 +90,6 @@ export class SetupRemoteRepository {
|
|||
}
|
||||
|
||||
private static async lfsCaching(lfsCacheFolder: string) {
|
||||
CloudRunnerLogger.logCli(` `);
|
||||
CloudRunnerLogger.logCli(`LFS Caching`);
|
||||
if (!fs.existsSync(lfsCacheFolder)) {
|
||||
fs.mkdirSync(lfsCacheFolder);
|
||||
|
|
@ -117,7 +116,6 @@ export class SetupRemoteRepository {
|
|||
}
|
||||
|
||||
private static async libraryCaching(libraryCacheFolder: string) {
|
||||
CloudRunnerLogger.logCli(`Starting checks of cache for the Unity project Library and git LFS files`);
|
||||
CloudRunnerLogger.logCli(`Library Caching`);
|
||||
//if the unity git project has included the library delete it and echo a warning
|
||||
if (fs.existsSync(CloudRunnerState.libraryFolderFull)) {
|
||||
|
|
@ -133,7 +131,6 @@ export class SetupRemoteRepository {
|
|||
).replace(`\n`, ``);
|
||||
CloudRunnerLogger.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
|
||||
process.chdir(libraryCacheFolder);
|
||||
await RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
|
||||
if (fs.existsSync(latestLibraryCacheFile)) {
|
||||
CloudRunnerLogger.logCli(`Library cache exists`);
|
||||
await RemoteClientSystem.Run(`unzip -q "${latestLibraryCacheFile}" -d "${CloudRunnerState.libraryFolderFull}"`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue