import cli methods

pull/353/head
Frostebite 2022-04-08 16:11:55 +01:00
parent 17fb1babfc
commit 07e9b719ac
4 changed files with 16 additions and 5 deletions

7
dist/index.js vendored
View File

@ -2932,6 +2932,9 @@ class CloudRunnerFolders {
static get libraryFolderFull() {
return path_1.default.join(CloudRunnerFolders.projectPathFull, `Library`);
}
static get projectBuildFolderFull() {
return path_1.default.join(CloudRunnerFolders.projectPathFull, `build`);
}
static get lfsDirectoryFull() {
return path_1.default.join(CloudRunnerFolders.repoPathFull, `.git`, `lfs`);
}
@ -3568,9 +3571,9 @@ class BuildAutomationWorkflow {
/entrypoint.sh
echo "game ci cloud runner push library to cache"
chmod +x ${builderPath}
node ${builderPath} -m cache-push --cachePushFrom Library --artifactName lib-${guid} --cachePushTo ${linuxCacheFolder}/Library
node ${builderPath} -m cache-push --cachePushFrom ${cloud_runner_folders_1.CloudRunnerFolders.libraryFolderFull} --artifactName lib-${guid} --cachePushTo ${linuxCacheFolder}/Library
echo "game ci cloud runner push build to cache"
node ${builderPath} -m cache-push --cachePushFrom build --artifactName build-${guid} --cachePushTo ${linuxCacheFolder}/build`;
node ${builderPath} -m cache-push --cachePushFrom ${cloud_runner_folders_1.CloudRunnerFolders.projectBuildFolderFull} --artifactName build-${guid} --cachePushTo ${linuxCacheFolder}/build`;
}
}
exports.BuildAutomationWorkflow = BuildAutomationWorkflow;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -35,6 +35,10 @@ export class CloudRunnerFolders {
return path.join(CloudRunnerFolders.projectPathFull, `Library`);
}
public static get projectBuildFolderFull(): string {
return path.join(CloudRunnerFolders.projectPathFull, `build`);
}
public static get lfsDirectoryFull(): string {
return path.join(CloudRunnerFolders.repoPathFull, `.git`, `lfs`);
}

View File

@ -108,8 +108,12 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
/entrypoint.sh
echo "game ci cloud runner push library to cache"
chmod +x ${builderPath}
node ${builderPath} -m cache-push --cachePushFrom Library --artifactName lib-${guid} --cachePushTo ${linuxCacheFolder}/Library
node ${builderPath} -m cache-push --cachePushFrom ${
CloudRunnerFolders.libraryFolderFull
} --artifactName lib-${guid} --cachePushTo ${linuxCacheFolder}/Library
echo "game ci cloud runner push build to cache"
node ${builderPath} -m cache-push --cachePushFrom build --artifactName build-${guid} --cachePushTo ${linuxCacheFolder}/build`;
node ${builderPath} -m cache-push --cachePushFrom ${
CloudRunnerFolders.projectBuildFolderFull
} --artifactName build-${guid} --cachePushTo ${linuxCacheFolder}/build`;
}
}