-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: upgrade docusaurus / fix deprecations * chore: upgrade docusaurus / fix deprecations * feat: introduce v3 * chore: upgrade node in ci * Reconcile v2 and v3 docs with latest unity builder changes. Remove parameters not available in v2 from v2 docs. * Remove parameters and outputs from v2.2.0-pre * Update version tags to align with new version * chore: upgrade docusaurus tsconfig * chore: import/order * fix: unresolved import * chore: versions as client-side block * fix: firebase resolution --------- Co-authored-by: Andrew Kahr <[email protected]> Co-authored-by: Gabriel Le Breton <[email protected]>
- Loading branch information
1 parent
324e8e3
commit e66ce4c
Showing
93 changed files
with
11,541 additions
and
4,942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ jobs: | |
|
||
# Build | ||
- name: Build project | ||
uses: game-ci/unity-builder@v2 | ||
uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
|
@@ -168,7 +168,7 @@ jobs: | |
|
||
# Build | ||
- name: Build project | ||
uses: game-ci/unity-builder@v2 | ||
uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
|
@@ -248,7 +248,7 @@ jobs: | |
path: ${{ steps.testRunner.outputs.artifactsPath }} | ||
- if: matrix.targetPlatform == 'Android' | ||
uses: jlumbroso/[email protected] | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
|
@@ -295,7 +295,7 @@ jobs: | |
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- | ||
Library-${{ matrix.projectPath }}- | ||
Library- | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
|
@@ -341,7 +341,7 @@ jobs: | |
Library-${{ matrix.projectPath }}- | ||
Library- | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ secret. | |
Then, define the build step as follows: | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
|
@@ -60,7 +60,7 @@ Make sure you have set up these variables in the activation step: | |
Then, define the build step as follows: | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
|
@@ -77,7 +77,7 @@ If you host your own Unity license server internally you can provide its url usi | |
Example of use: | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
targetPlatform: WebGL | ||
unityLicensingServer: [url to your license server] | ||
|
@@ -152,7 +152,7 @@ _**required:** `false`_ _**default:** `auto`_ | |
Specific docker image that should be used for building the project. | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
customImage: 'unityci/editor:2020.1.14f1-base-0' | ||
``` | ||
|
@@ -192,7 +192,7 @@ There are two conditions for a custom buildMethod: | |
Example: | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
buildMethod: EditorNamespace.BuilderClassName.StaticBuildMethod | ||
``` | ||
|
@@ -202,7 +202,7 @@ To get started with a modified version of the default Unity Builder build script | |
`Assets/Editor/UnityBuilderAction` directory and reference it: | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
buildMethod: UnityBuilderAction.BuildScript.Build | ||
``` | ||
|
@@ -220,7 +220,7 @@ Parameters must start with a hyphen (`-`) and may be followed by a value (withou | |
Parameters without a value will be considered booleans (with a value of true). | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue | ||
``` | ||
|
@@ -238,7 +238,7 @@ _**required:** `false`_ _**default:** `""`_ | |
Configure a specific versioning strategy | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
versioning: Semantic | ||
``` | ||
|
@@ -298,7 +298,7 @@ Set this flag to `androidPackage` to build an apk, `androidAppBundle` for an aab | |
`androidStudioProject` to build an Android Studio Project. | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
androidExportType: 'androidAppBundle' | ||
androidKeystoreName: user.keystore | ||
|
@@ -308,33 +308,12 @@ Set this flag to `androidPackage` to build an apk, `androidAppBundle` for an aab | |
androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }} | ||
``` | ||
|
||
You should also set all the Android Keystore options (see below). Refer to (this | ||
section)[/docs/github/deployment/android#3-generate-an-upload-key-and-keystore] for keystore setup. | ||
You should also set all the Android Keystore options (see below). Refer to | ||
[this section](/docs/github/deployment/android#3-generate-an-upload-key-and-keystore) for keystore | ||
setup. | ||
|
||
_**required:** `false`_ _**default:** `androidPackage`_ | ||
|
||
#### androidAppBundle | ||
|
||
**[Deprecated] Please use androidExportType instead.** | ||
|
||
Set this flag to `true` to build '.aab' instead of '.apk'. | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
with: | ||
androidAppBundle: true | ||
androidKeystoreName: user.keystore | ||
androidKeystoreBase64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }} | ||
androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS }} | ||
androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME }} | ||
androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }} | ||
``` | ||
|
||
You should also set all the Android Keystore options (see below). Refer to (this | ||
section)[/docs/github/deployment/android#3-generate-an-upload-key-and-keystore] for keystore setup. | ||
|
||
_**required:** `false`_ _**default:** `false`_ | ||
|
||
#### androidKeystoreName | ||
|
||
Configure the android `keystoreName`. Must be provided if configuring the below keystore options. | ||
|
@@ -417,7 +396,7 @@ _**required:** `false`_ _**default:** `""`_ | |
Allows the branch of the build to be dirty, and still generate the build. | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
allowDirtyBuild: true | ||
``` | ||
|
@@ -447,6 +426,20 @@ ie `3.4.0`. An empty string represents the latest available version on homebrew. | |
|
||
_**required:** `false`_ _**default:** `""`_ | ||
|
||
#### dockerWorkspacePath | ||
|
||
Allows customizing the build path within the container in case there are hardcoded paths generated | ||
during the build. For example building an IOS XCode project on Linux and moving to a new path on | ||
MacOS occasionally leads to broken paths requiring this override to ensure the paths match. | ||
|
||
Paths should be of format `/path/to/build`, ie `/tmp/build`. On Windows, leave off the drive letter | ||
specification. For example `C:\build` becomes `/build`. There should be no trailing slash in the | ||
path and the path should be absolute. The path will automatically be created within the container if | ||
it does not exist. It is recommended to use a path that doesn't already exist within the container | ||
to avoid any conflicts. | ||
|
||
_**required:** `false`_ _**default:** `"/github/workspace"`_ | ||
|
||
## Outputs | ||
|
||
Below 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 | |
`versioning`. | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
id: myBuildStep | ||
- run: echo 'Project Version: ${{ steps.myBuildStep.outputs.buildVersion }}' | ||
``` | ||
|
@@ -468,7 +461,7 @@ Returns the version that was generated by Builder, following the strategy config | |
Returns the version code that was generated by Builder for Android builds. | ||
|
||
```yaml | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
id: myBuildStep | ||
- run: echo 'Android Version Code: ${{ steps.myBuildStep.outputs.androidVersionCode }}' | ||
``` | ||
|
@@ -507,7 +500,7 @@ steps: | |
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
with: | ||
sshAgent: ${{ env.SSH_AUTH_SOCK }} | ||
``` | ||
|
@@ -565,7 +558,7 @@ jobs: | |
restore-keys: Library- | ||
- if: matrix.targetPlatform == 'Android' | ||
uses: jlumbroso/[email protected] | ||
- uses: game-ci/unity-builder@v2 | ||
- uses: game-ci/unity-builder@v3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.