better defaults

pull/353/head
Mark D 2022-04-03 03:26:49 +01:00
parent af3f117e87
commit 609c8c968f
2 changed files with 6 additions and 3 deletions

7
dist/index.js vendored
View File

@ -3235,7 +3235,7 @@ class BuildAutomationWorkflow {
${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? '' : '#'} tree ${cloud_runner_folders_1.CloudRunnerFolders.builderPathFull.replace(/\\/g, `/`)} ${cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests ? '' : '#'} tree ${cloud_runner_folders_1.CloudRunnerFolders.builderPathFull.replace(/\\/g, `/`)}
chmod +x ${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathFull, 'dist', `index.js`).replace(/\\/g, `/`)} chmod +x ${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathFull, 'dist', `index.js`).replace(/\\/g, `/`)}
echo "caching" echo "caching"
ls ${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathFull, 'dist').replace(/\\/g, `/`)} node --version
node ${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathFull, 'dist', `index.js`).replace(/\\/g, `/`)} -m remote-cli`; node ${path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathFull, 'dist', `index.js`).replace(/\\/g, `/`)} -m remote-cli`;
} }
static get BuildCommands() { static get BuildCommands() {
@ -4068,7 +4068,7 @@ class Input {
} }
} }
static get cloudRunnerBuilderPlatform() { static get cloudRunnerBuilderPlatform() {
return Input.getInput('cloudRunnerBuilderPlatform') || false; return Input.cloudRunnerCluster === 'local' ? Input.getInput('cloudRunnerBuilderPlatform') || false : 'linux';
} }
static get gitSha() { static get gitSha() {
if (Input.getInput(`GITHUB_SHA`)) { if (Input.getInput(`GITHUB_SHA`)) {
@ -4187,6 +4187,9 @@ class Input {
return Input.getInput('awsBaseStackName') || 'game-ci'; return Input.getInput('awsBaseStackName') || 'game-ci';
} }
static get cloudRunnerCluster() { static get cloudRunnerCluster() {
if (Input.cliMode) {
return Input.getInput('cloudRunnerCluster') || 'aws';
}
return Input.getInput('cloudRunnerCluster') || 'local'; return Input.getInput('cloudRunnerCluster') || 'local';
} }
static get cloudRunnerCpu() { static get cloudRunnerCpu() {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long