Skip to content

A Github Action to execute Unity Editor command line arguments

License

Notifications You must be signed in to change notification settings

buildalon/unity-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buildalon Unity Action

Discord marketplace validate

A Github Action to execute Unity Editor command line arguments.

How to use

Workflow

jobs:
  build:
    env:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        include:
          - os: ubuntu-latest
            build-target: StandaloneLinux64
          - os: windows-latest
            build-target: StandaloneWindows64
          - os: macos-13
            build-target: StandaloneOSX
    steps:
      - uses: buildalon/unity-action@v1
        name: '${{ matrix.build-target }}-Build'
        with:
          editor-path: 'path/to/your/unity/editor/installation'
          project-path: 'path/to/your/unity/project'
          log-name: '${{ matrix.build-target }}-Build'
          build-target: '${{ matrix.build-target }}'
          args: '-quit -nographics -batchmode'

Inputs

Input Description Required Default
editor-path The path to the unity editor installation you want to use to execute the arguments with. If UNITY_EDITOR_PATH environment variable is not set. env.UNITY_EDITOR_PATH
project-path The path to the unity project you want to use when executing arguments. If UNITY_PROJECT_PATH environment variable is not set, or if it isn't required for the command. env.UNITY_PROJECT_PATH
build-target The build target to use when executing arguments. false
args The arguments to use when executing commands to the editor. true -quit -batchmode -nographics
log-name The name of the log file to create when running the commands. false Unity-yyyyMMddTHHmmss