@@ -40,7 +40,7 @@ secret.
4040Then, define the build step as follows:
4141
4242``` yaml
43- - uses : game-ci/unity-builder@v2
43+ - uses : game-ci/unity-builder@v3
4444 env :
4545 UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
4646 UNITY_EMAIL : ${{ secrets.UNITY_EMAIL }}
@@ -60,7 +60,7 @@ Make sure you have set up these variables in the activation step:
6060Then, define the build step as follows :
6161
6262` ` ` yaml
63- - uses: game-ci/unity-builder@v2
63+ - uses: game-ci/unity-builder@v3
6464 env:
6565 UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
6666 UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
@@ -77,7 +77,7 @@ If you host your own Unity license server internally you can provide its url usi
7777Example of use :
7878
7979` ` ` yaml
80- - uses: game-ci/unity-builder@v2
80+ - uses: game-ci/unity-builder@v3
8181 with:
8282 targetPlatform: WebGL
8383 unityLicensingServer: [url to your license server]
@@ -152,7 +152,7 @@ _**required:** `false`_ _**default:** `auto`_
152152Specific docker image that should be used for building the project.
153153
154154` ` ` yaml
155- - uses: game-ci/unity-builder@v2
155+ - uses: game-ci/unity-builder@v3
156156 with:
157157 customImage: 'unityci/editor:2020.1.14f1-base-0'
158158` ` `
@@ -192,7 +192,7 @@ There are two conditions for a custom buildMethod:
192192Example :
193193
194194` ` ` yaml
195- - uses: game-ci/unity-builder@v2
195+ - uses: game-ci/unity-builder@v3
196196 with:
197197 buildMethod: EditorNamespace.BuilderClassName.StaticBuildMethod
198198` ` `
@@ -202,7 +202,7 @@ To get started with a modified version of the default Unity Builder build script
202202`Assets/Editor/UnityBuilderAction` directory and reference it :
203203
204204` ` ` yaml
205- - uses: game-ci/unity-builder@v2
205+ - uses: game-ci/unity-builder@v3
206206 with:
207207 buildMethod: UnityBuilderAction.BuildScript.Build
208208` ` `
@@ -220,7 +220,7 @@ Parameters must start with a hyphen (`-`) and may be followed by a value (withou
220220Parameters without a value will be considered booleans (with a value of true).
221221
222222` ` ` yaml
223- - uses: game-ci/unity-builder@v2
223+ - uses: game-ci/unity-builder@v3
224224 with:
225225 customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
226226` ` `
@@ -238,7 +238,7 @@ _**required:** `false`_ _**default:** `""`_
238238Configure a specific versioning strategy
239239
240240` ` ` yaml
241- - uses: game-ci/unity-builder@v2
241+ - uses: game-ci/unity-builder@v3
242242 with:
243243 versioning: Semantic
244244` ` `
@@ -298,7 +298,7 @@ Set this flag to `androidPackage` to build an apk, `androidAppBundle` for an aab
298298` androidStudioProject` to build an Android Studio Project.
299299
300300` ` ` yaml
301- - uses: game-ci/unity-builder@v2
301+ - uses: game-ci/unity-builder@v3
302302 with:
303303 androidExportType: 'androidAppBundle'
304304 androidKeystoreName: user.keystore
@@ -308,33 +308,12 @@ Set this flag to `androidPackage` to build an apk, `androidAppBundle` for an aab
308308 androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }}
309309` ` `
310310
311- You should also set all the Android Keystore options (see below). Refer to (this
312- section)[/docs/github/deployment/android#3-generate-an-upload-key-and-keystore] for keystore setup.
311+ You should also set all the Android Keystore options (see below). Refer to
312+ [this section](/docs/github/deployment/android#3-generate-an-upload-key-and-keystore) for keystore
313+ setup.
313314
314315_**required:** `false`_ _**default:** `androidPackage`_
315316
316- # ### androidAppBundle
317-
318- **[Deprecated] Please use androidExportType instead.**
319-
320- Set this flag to `true` to build '.aab' instead of '.apk'.
321-
322- ` ` ` yaml
323- - uses: game-ci/unity-builder@v2
324- with:
325- androidAppBundle: true
326- androidKeystoreName: user.keystore
327- androidKeystoreBase64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
328- androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS }}
329- androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME }}
330- androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }}
331- ` ` `
332-
333- You should also set all the Android Keystore options (see below). Refer to (this
334- section)[/docs/github/deployment/android#3-generate-an-upload-key-and-keystore] for keystore setup.
335-
336- _**required:** `false`_ _**default:** `false`_
337-
338317# ### androidKeystoreName
339318
340319Configure the android `keystoreName`. Must be provided if configuring the below keystore options.
@@ -417,7 +396,7 @@ _**required:** `false`_ _**default:** `""`_
417396Allows the branch of the build to be dirty, and still generate the build.
418397
419398` ` ` yaml
420- - uses: game-ci/unity-builder@v2
399+ - uses: game-ci/unity-builder@v3
421400 with:
422401 allowDirtyBuild: true
423402` ` `
@@ -447,6 +426,20 @@ ie `3.4.0`. An empty string represents the latest available version on homebrew.
447426
448427_**required:** `false`_ _**default:** `""`_
449428
429+ # ### dockerWorkspacePath
430+
431+ Allows customizing the build path within the container in case there are hardcoded paths generated
432+ during the build. For example building an IOS XCode project on Linux and moving to a new path on
433+ MacOS occasionally leads to broken paths requiring this override to ensure the paths match.
434+
435+ Paths should be of format `/path/to/build`, ie `/tmp/build`. On Windows, leave off the drive letter
436+ specification. For example `C:\build` becomes `/build`. There should be no trailing slash in the
437+ path and the path should be absolute. The path will automatically be created within the container if
438+ it does not exist. It is recommended to use a path that doesn't already exist within the container
439+ to avoid any conflicts.
440+
441+ _**required:** `false`_ _**default:** `"/github/workspace"`_
442+
450443# # Outputs
451444
452445Below are outputs that can be accessed by using `${{ steps.myBuildStep.outputs.outputName }}`, where
@@ -458,7 +451,7 @@ Returns the version that was generated by Builder, following the strategy config
458451` versioning` .
459452
460453` ` ` yaml
461- - uses: game-ci/unity-builder@v2
454+ - uses: game-ci/unity-builder@v3
462455 id: myBuildStep
463456- run: echo 'Project Version: ${{ steps.myBuildStep.outputs.buildVersion }}'
464457` ` `
@@ -468,7 +461,7 @@ Returns the version that was generated by Builder, following the strategy config
468461Returns the version code that was generated by Builder for Android builds.
469462
470463` ` ` yaml
471- - uses: game-ci/unity-builder@v2
464+ - uses: game-ci/unity-builder@v3
472465 id: myBuildStep
473466- run: echo 'Android Version Code: ${{ steps.myBuildStep.outputs.androidVersionCode }}'
474467` ` `
@@ -507,7 +500,7 @@ steps:
507500 - uses: webfactory/[email protected] 508501 with:
509502 ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
510- - uses: game-ci/unity-builder@v2
503+ - uses: game-ci/unity-builder@v3
511504 with:
512505 sshAgent: ${{ env.SSH_AUTH_SOCK }}
513506` ` `
@@ -565,7 +558,7 @@ jobs:
565558 restore-keys: Library-
566559 - if: matrix.targetPlatform == 'Android'
567560568- - uses: game-ci/unity-builder@v2
561+ - uses: game-ci/unity-builder@v3
569562 env:
570563 UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
571564 with:
0 commit comments