feat: add buildProfile parameter (#685)
* feat: add `buildProfile` parameter add new `buildProfile` action param, which will be passed into Unity as the `-activeBuildProfile ...` CLI param. closes https://github.com/game-ci/unity-builder/issues/674 * ci: add tests for Unity 6 and build profiles
This commit is contained in:
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
@@ -297,6 +297,7 @@ class BuildParameters {
|
||||
runnerTempPath: input_1.default.runnerTempPath,
|
||||
targetPlatform: input_1.default.targetPlatform,
|
||||
projectPath: input_1.default.projectPath,
|
||||
buildProfile: input_1.default.buildProfile,
|
||||
buildName: input_1.default.buildName,
|
||||
buildPath: `${input_1.default.buildsPath}/${input_1.default.targetPlatform}`,
|
||||
buildFile,
|
||||
@@ -6426,6 +6427,7 @@ class ImageEnvironmentFactory {
|
||||
value: process.env.USYM_UPLOAD_AUTH_TOKEN,
|
||||
},
|
||||
{ name: 'PROJECT_PATH', value: parameters.projectPath },
|
||||
{ name: 'BUILD_PROFILE', value: parameters.buildProfile },
|
||||
{ name: 'BUILD_TARGET', value: parameters.targetPlatform },
|
||||
{ name: 'BUILD_NAME', value: parameters.buildName },
|
||||
{ name: 'BUILD_PATH', value: parameters.buildPath },
|
||||
@@ -6968,6 +6970,9 @@ class Input {
|
||||
}
|
||||
return rawProjectPath.replace(/\/$/, '');
|
||||
}
|
||||
static get buildProfile() {
|
||||
return Input.getInput('buildProfile') ?? '';
|
||||
}
|
||||
static get runnerTempPath() {
|
||||
return Input.getInput('RUNNER_TEMP') ?? '';
|
||||
}
|
||||
@@ -7443,6 +7448,7 @@ class SetupMac {
|
||||
process.env.UNITY_LICENSING_SERVER = buildParameters.unityLicensingServer;
|
||||
process.env.SKIP_ACTIVATION = buildParameters.skipActivation;
|
||||
process.env.PROJECT_PATH = buildParameters.projectPath;
|
||||
process.env.BUILD_PROFILE = buildParameters.buildProfile;
|
||||
process.env.BUILD_TARGET = buildParameters.targetPlatform;
|
||||
process.env.BUILD_NAME = buildParameters.buildName;
|
||||
process.env.BUILD_PATH = buildParameters.buildPath;
|
||||
|
||||
Reference in New Issue
Block a user