You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Unity Build Pipeline Utility
v3
A GitHub Action that builds Unity based projects.
Warning
This action requires that your Unity project be setup and using the com.utilities.buildpipeine package from OpenUPM
name: Unity Build
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
build-target: StandaloneWindows64
- os: macos-latest
build-target: StandaloneOSX
- os: ubuntu-latest
build-target: StandaloneLinux64
steps:
- uses: actions/checkout@v3
with:
clean: true
# Installs the Unity Editor based on your project version text file
# sets -> env.UNITY_EDITOR_PATH
# sets -> env.UNITY_PROJECT_PATH
# https://github.com/XRTK/unity-setup
- uses: xrtk/unity-setup@v4
- name: Unity Build (${{ matrix.build-target }})
uses: RageAgainstThePixel/unity-build@v3
with:
build-target: ${{ matrix.build-target }}