Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

XRTK Unity Build

A GitHub Action that builds XRTK based projects.

Part of the Mixed Reality Toolkit (XRTK) open source project.

This action requires that your Unity project be setup and using the com.xrtk.core package.

How to use

on:
push:
branches:
- 'main'pull_request:
branches:
- '*'# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:
concurrency:
group: ${{ github.ref }}cancel-in-progress: truejobs:
build:
runs-on: ${{ matrix.os }}strategy:
#max-parallel: 2 # Use this if you're activating pro license with matrixmatrix:
include:
- os: windows-latestbuild-target: StandaloneWindows64
- os: macos-latestbuild-target: StandaloneOSX
- os: ubuntu-latestbuild-target: StandaloneLinux64steps:
- uses: actions/checkout@v3# 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@v7with:
build-targets: ${{ matrix.build-target }}# Activates the installation with the provided credentials# https://github.com/XRTK/activate-unity-license
- uses: xrtk/activate-unity-license@v2with:
# Requiredusername: ${{ secrets.UNITY_USERNAME }}password: ${{ secrets.UNITY_PASSWORD }}# Optionalserial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activationslicense-type: 'Personal'# Chooses license type to use [ Personal, Professional ]
- name: Unity Build (${{ matrix.build-target }})uses: xrtk/unity-build@v4with:
build-target: ${{ matrix.build-target }}

About

GitHub action to build a project using the XRTK build pipeline

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Used by

Contributors