actions-marketplace-validations/Unity Build
This action performs a Unity command line build.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Apr 18, 2025
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/akiojin_unity-build-github-action@1559a33404b81d4f5ccccd43391a8f540c17fabd # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| additional-arguments | Specify additional required arguments. | no | "" |
| app-id | Specify the App ID. ex) com.akiojin.Sample | no | — |
| bundle-version | Specify the bundle version. This value is set to PlayerSettings.bundleVersion If omitted, the value set in PlayerSettings.bundleVersion is used as is. | — | — |
| build-target | Allows the selection of an active build target before loading a project. Possible options are: Standalone, Win, Win64, OSXUniversal, Linux, Linux64, LinuxUniversal, iOS, Android, Web, WebStreamed, WebGL, XboxOne, PS4, WindowsStoreApps, Switch, N3DS, tvOS. | yes | — |
| configuration | The configuration to use when building the app. Defaults to 'Debug' Possible options are: Debug, Release. | no | Debug |
| enable-bake | Specify true to bake at build time. | no | false |
| execute-method | Execute the static method as soon as Unity opens the project, and after the optional Asset server update is complete. | no | "" |
| install-directory | If the Unity installation location is not the default, specify the path in this parameter. or in the environment variable `UNITY_HUB_INSTALL_DIRECTORY`. The path must exclude the version number. ex) E:\Unity\ | no | "" |
| log-file | Specify where Unity writes the Editor or Windows/Linux/OSX standalone log file. To output to the console, specify - for the path name. On Windows, specify - option to make the output go to stdout, which is not the console by default. | no | - |
| output-directory | Specifies the output directory. If omitted, runner.temp is set. | no | ${{ runner.temp }} |
| output-name | Specifies the output file name. If an empty string is passed for this value, the product name or "ProductName" specified in the Unity Editor will be used. Defaults to "Build" | no | Build |
| project-directory | Open the project at the given path. If the pathname contains spaces, enclose it in quotes. | no | ${{ github.workspace }} |
| revision | Specify the revision. This value is set to PlayerSettings.iOS.buildNumber or PlayerSettings.Android.bundleVersionCode. If omitted, github.run_number is set. | no | ${{ github.run_number }} |
| unity-version | Specify the Unity version to be used. If omitted, the project version is used. | no | "" |
| p12-base64 | Specify the Base64 data for the p12 file. If you do not specify a file path in `p12`, you must specify this parameter. Also, if this value is specified, the value of `p12` is ignored. Required for macOS/iOS builds. | — | — |
| export-method | Method used to export the archive. Valid values are: app-store, validation, ad-hoc, package, enterprise, development, developer-id and mac-application. Required for iOS builds. | no | development |
| include-bitcode | Should the ipa file include bitcode? Defaults to false. Required for iOS builds. | no | false |
| include-symbols | Should the ipa file include symbols? Defaults to false. Required for iOS builds. | no | false |
| provisioning-profile-base64 | — | no | "" |
| provisioning-profile-uuid | Specify the UUID of the provisioning profile. Required for iOS builds. | no | "" |
| provisioning-profile-name | Specify the Name of the provisioning profile. If app-id is specified, this parameter must be specified. It will be enabled for iOS builds. | no | "" |
| provisioning-profile-type | Specify the type of provisioning profile. Required for iOS builds. If omitted, Automatic is set. Valid values are: Automatic, Development, Distribution | no | Automatic |
| strip-swift-symbols | If set to true, it will truncate symbols from the Swift library in the IPA file, reducing the size of the IPA file. Used during iOS build. | no | true |
| symbols | Specify additional definitions. Separate each definition with a semicolon. ex) DEBUG;TEST;DEVELOPMENT | no | — |
| team-id | The ID of your Developer Portal team if you're in multiple teams. Required for iOS build. | no | "" |
| keystore | Specify the path to the keystore file. If a custom keystore is used, it must be specified; however, if it is included in the project settings in advance, it need not be specified. If you use a custom keystore, you must specify `keystore-password`, `keystore-alias`, and `keystore-alias-password`. Used during Android build. | no | "" |
| keystore-alias | Specifies the name of the keystore alias. If a custom keystore is used, it must be specified. Used during Android build. | no | "" |
| keystore-alias-password | Specify the password for the keystore alias. If a custom keystore is used, it must be specified. Used during Android build. | no | "" |
| keystore-base64 | Specifies Base64 data for the keystore. If you do not specify a file path in `keystore`, you must specify this parameter. Also, if this value is specified, the value of `keystore` is ignored. Used during Android build. | no | "" |
| keystore-password | Specify the password for the keystore. If a custom keystore is used, it must be specified. Used during Android build. | no | "" |
| install-location | The directory where the package is to be installed. If omitted, '/Applications' is specified. Required for macOS builds. | no | /Applications |
| temporary-directory | Specify a temporary folder for the Xcode project files that Unity outputs during iOS build. No change is required unless there is a specific reason. | no | ${{ runner.temp }}/temp |
Outputs
| name | description |
|---|---|
| output-path | Path of the output binary |