Build Unity projects for different platforms
Go to file
2019-12-03 23:42:27 +01:00
.github/workflows Test the action 2019-12-01 01:33:01 +01:00
test-project Build with webgl container 2019-12-01 01:33:01 +01:00
.dockerignore Initial take at the build job 2019-12-01 01:33:01 +01:00
.gitignore Add gitignore 2019-11-30 19:02:30 +01:00
action.yml Initial take at the build job 2019-12-01 01:33:01 +01:00
Dockerfile Build with webgl container 2019-12-01 01:33:01 +01:00
entrypoint.sh Reflect new options based on unity's code 2019-12-01 02:22:40 +01:00
LICENSE Add license (MIT) 2019-11-30 19:02:47 +01:00
README.md Update readme contributions and license 2019-12-03 23:42:27 +01:00

Unity - Builder

Actions status


GitHub Action to build Unity projects for different platforms.

Part of the Unity Actions collection.


Github Action to build Unity projects for different platforms.

It is recommended to run the Test action from the Unity Actions collection before running this action. This action also requires the Activation step.

Documentation

See the Unity Actions collection repository for workflow documentation and reference implementation.

Usage

Create or edit the file called .github/workflows/main.yml and add a job to it.

name: Build project
on: [push]
jobs:
  buildForWebGL:
    name: Build for WebGL 🕸
    runs-on: ubuntu-latest
    steps:

Configure the builder as follows:

      # Configure builder
      - name: Build project
        id: buildStep
        uses: webbertakken/unity-builder@v0.1 # WIP (only webgl for now)
        env:
          UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
  
          # Optional: Path to your project, leave blank for "./"
          UNITY_PROJECT_PATH: path/to/your/project

          # Name for your build
          BUILD_NAME: TestBuild

          # Optional: Builds path, leave blank for "build"
          BUILDS_PATH: build

          # Target platform for your build
          BUILD_TARGET: WebGL

          # Optional: <StaticBuildClass.StaticMethod>, defaults to Builder.BuildProject
          BUILD_COMMAND: ""

You use the id to upload your built files like so:

      # Upload distributables
      - name: Upload Build
        uses: actions/upload-artifact@v1
        with:
          name: Build
          path: ${{ steps.buildStep.outputs.allBuildsPath }}

Commit and push your workflow definition.

More actions

Visit Unity Actions to find related actions for Unity.

Feel free to contribute.

Licence

MIT