fixing cache folder
parent
9f291a0838
commit
36b094be8a
|
|
@ -35,7 +35,7 @@ jobs:
|
|||
- 2019.3.15f1
|
||||
targetPlatform:
|
||||
#- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
|
||||
#- StandaloneWindows64 # Build a Windows 64-bit standalone.
|
||||
- StandaloneWindows64 # Build a Windows 64-bit standalone.
|
||||
- StandaloneLinux64 # Build a Linux 64-bit standalone.
|
||||
#- iOS # Build an iOS player.
|
||||
#- Android # Build an Android .apk.
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ jobs:
|
|||
# - 2019.2.11f1
|
||||
- 2019.3.15f1
|
||||
targetPlatform:
|
||||
- StandaloneWindows64
|
||||
- StandaloneLinux64
|
||||
steps:
|
||||
###########################
|
||||
|
|
|
|||
|
|
@ -612,26 +612,17 @@ class Caching {
|
|||
});
|
||||
}
|
||||
static handleCachePurging() {
|
||||
if (process.env.purgeRemoteCaching !== undefined) {
|
||||
if (process.env.PURGE_REMOTE_BUILDER_CACHE !== undefined) {
|
||||
remote_client_logger_1.RemoteClientLogger.log(`purging ${cloud_runner_state_1.CloudRunnerState.purgeRemoteCaching}`);
|
||||
fs_1.default.rmdirSync(cloud_runner_state_1.CloudRunnerState.cacheFolder, { recursive: true });
|
||||
}
|
||||
}
|
||||
static printFullCacheHierarchySize() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`echo ' '
|
||||
echo "LFS cache for $branch"
|
||||
du -sch "${cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull}/"
|
||||
echo '**'
|
||||
echo "Library cache for $branch"
|
||||
du -sch "${cloud_runner_state_1.CloudRunnerState.libraryCacheFolderFull}/"
|
||||
echo '**'
|
||||
echo "Branch: $branch"
|
||||
du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/"
|
||||
echo '**'
|
||||
echo 'Full cache'
|
||||
du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/../"
|
||||
echo ' '`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.lfsCacheFolderFull}/"`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.libraryCacheFolderFull}/"`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/"`);
|
||||
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sch "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull}/../"`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -101,27 +101,16 @@ export class Caching {
|
|||
}
|
||||
|
||||
public static handleCachePurging() {
|
||||
if (process.env.purgeRemoteCaching !== undefined) {
|
||||
if (process.env.PURGE_REMOTE_BUILDER_CACHE !== undefined) {
|
||||
RemoteClientLogger.log(`purging ${CloudRunnerState.purgeRemoteCaching}`);
|
||||
fs.rmdirSync(CloudRunnerState.cacheFolder, { recursive: true });
|
||||
}
|
||||
}
|
||||
|
||||
public static async printFullCacheHierarchySize() {
|
||||
await CloudRunnerSystem.Run(
|
||||
`echo ' '
|
||||
echo "LFS cache for $branch"
|
||||
du -sch "${CloudRunnerState.lfsCacheFolderFull}/"
|
||||
echo '**'
|
||||
echo "Library cache for $branch"
|
||||
du -sch "${CloudRunnerState.libraryCacheFolderFull}/"
|
||||
echo '**'
|
||||
echo "Branch: $branch"
|
||||
du -sch "${CloudRunnerState.cacheFolderFull}/"
|
||||
echo '**'
|
||||
echo 'Full cache'
|
||||
du -sch "${CloudRunnerState.cacheFolderFull}/../"
|
||||
echo ' '`,
|
||||
);
|
||||
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.lfsCacheFolderFull}/"`);
|
||||
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.libraryCacheFolderFull}/"`);
|
||||
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.cacheFolderFull}/"`);
|
||||
await CloudRunnerSystem.Run(`du -sch "${CloudRunnerState.cacheFolderFull}/../"`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue