Skip to content

akiojin/unity-command-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

unity-command-github-action

Build

This action is for executing a specific build script. For more information about the Unity command line, please refer to the official documentation.

This action also automatically generates a build script that does nothing but open the Unity project if an empty string is passed to execute-method. This can only be used to check for compile errors.

Usage

Simple usage

In the following call to action, the program simply opens the project in iOS without passing any particular parameters. This process will compile with the target set to iOS in Unity.

- uses: akiojin/unity-command-github-action@v1with: build-target: iOS

Additional arguments

The following call to action calls the program UnityBuildScript.PerformBuild in the build script. The parameter -v --param="Test" is passed when executing that build script.

- uses: akiojin/unity-command-github-action@v1with: build-target: iOSproject-directory: ${{github.workspace }}execute-method: UnityBuildScript.PerformBuildadditional-arguments: -v --param="Test"

Arguments

Common

NameRequiredTypeDefaultDescription
additional-argumentsfalsestring""Specify additional required arguments.
build-targettruestringAllows 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.
execute-methodfalsestringExecute the static method as soon as Unity opens the project, and after the optional Asset server update is complete.
install-directoryfalsestring""If the Unity installation location is not the default, specify the path in this parameter.
The path must exclude the version number.
ex) E:\Unity\
log-filefalsestring"-"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.
project-directoryfalsestring$GITHUB_WORKSPACEOpen the project at the given path.
unity-versionfalsestring""Specify the Unity version to be used.
If omitted, the project version is used.

License

Any contributions made under this project will be governed by the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •