Fix missing await
parent
7cd48580ec
commit
107d6a5fe3
|
|
@ -64,7 +64,7 @@ function run() {
|
||||||
// default and local case
|
// default and local case
|
||||||
default:
|
default:
|
||||||
core.info('Building locally');
|
core.info('Building locally');
|
||||||
platform_setup_1.default.setup(buildParameters, actionFolder);
|
yield platform_setup_1.default.setup(buildParameters, actionFolder);
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
mac_builder_1.default.run(actionFolder, workspace, buildParameters);
|
mac_builder_1.default.run(actionFolder, workspace, buildParameters);
|
||||||
}
|
}
|
||||||
|
|
@ -1284,7 +1284,7 @@ class PlatformSetup {
|
||||||
platform_setup_1.SetupWindows.setup(buildParameters);
|
platform_setup_1.SetupWindows.setup(buildParameters);
|
||||||
break;
|
break;
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
platform_setup_1.SetupMac.setup(buildParameters, actionFolder);
|
yield platform_setup_1.SetupMac.setup(buildParameters, actionFolder);
|
||||||
break;
|
break;
|
||||||
//Add other baseOS's here
|
//Add other baseOS's here
|
||||||
}
|
}
|
||||||
|
|
@ -1360,8 +1360,10 @@ class SetupMac {
|
||||||
ANDROID_SDK_MANAGER_PARAMETERS=${buildParameters.androidSdkManagerParameters}
|
ANDROID_SDK_MANAGER_PARAMETERS=${buildParameters.androidSdkManagerParameters}
|
||||||
CUSTOM_PARAMETERS=${buildParameters.customParameters}
|
CUSTOM_PARAMETERS=${buildParameters.customParameters}
|
||||||
CHOWN_FILES_TO=${buildParameters.chownFilesTo}`;
|
CHOWN_FILES_TO=${buildParameters.chownFilesTo}`;
|
||||||
|
process.env.RANDOM_VARIABLE = 'Hi there';
|
||||||
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
||||||
try {
|
try {
|
||||||
|
console.log(environmentContent);
|
||||||
console.log(`${process.env.RUNNER_TEMP}/build.env`);
|
console.log(`${process.env.RUNNER_TEMP}/build.env`);
|
||||||
fs_1.default.writeFileSync(`${process.env.RUNNER_TEMP}/build.env`, environmentContent);
|
fs_1.default.writeFileSync(`${process.env.RUNNER_TEMP}/build.env`, environmentContent);
|
||||||
console.log('Wrote file');
|
console.log('Wrote file');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -28,7 +28,7 @@ async function run() {
|
||||||
// default and local case
|
// default and local case
|
||||||
default:
|
default:
|
||||||
core.info('Building locally');
|
core.info('Building locally');
|
||||||
PlatformSetup.setup(buildParameters, actionFolder);
|
await PlatformSetup.setup(buildParameters, actionFolder);
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
MacBuilder.run(actionFolder, workspace, buildParameters);
|
MacBuilder.run(actionFolder, workspace, buildParameters);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class PlatformSetup {
|
||||||
SetupWindows.setup(buildParameters);
|
SetupWindows.setup(buildParameters);
|
||||||
break;
|
break;
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
SetupMac.setup(buildParameters, actionFolder);
|
await SetupMac.setup(buildParameters, actionFolder);
|
||||||
break;
|
break;
|
||||||
//Add other baseOS's here
|
//Add other baseOS's here
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,11 @@ class SetupMac {
|
||||||
ANDROID_SDK_MANAGER_PARAMETERS=${buildParameters.androidSdkManagerParameters}
|
ANDROID_SDK_MANAGER_PARAMETERS=${buildParameters.androidSdkManagerParameters}
|
||||||
CUSTOM_PARAMETERS=${buildParameters.customParameters}
|
CUSTOM_PARAMETERS=${buildParameters.customParameters}
|
||||||
CHOWN_FILES_TO=${buildParameters.chownFilesTo}`;
|
CHOWN_FILES_TO=${buildParameters.chownFilesTo}`;
|
||||||
|
process.env.RANDOM_VARIABLE = 'Hi there';
|
||||||
|
|
||||||
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
||||||
try {
|
try {
|
||||||
|
console.log(environmentContent);
|
||||||
console.log(`${process.env.RUNNER_TEMP}/build.env`);
|
console.log(`${process.env.RUNNER_TEMP}/build.env`);
|
||||||
fs.writeFileSync(`${process.env.RUNNER_TEMP}/build.env`, environmentContent);
|
fs.writeFileSync(`${process.env.RUNNER_TEMP}/build.env`, environmentContent);
|
||||||
console.log('Wrote file');
|
console.log('Wrote file');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue