Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
/ unity-setup Public archive

A script to download and install the Unity Editor for Github Actions

License

Notifications You must be signed in to change notification settings

XRTK/unity-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-setup

Important

The action is no longer maintained and has been moved to buildalon/unity-setup

An atomic GitHub action to download and install the Unity Editor for runners.

  • If a valid installation is found, then installation is skipped.
  • If a module is missing for a valid build target, then the module is installed.
  • Outputs:
    • UNITY_EDITOR_PATH The path to the Unity Editor Installation.
    • UNITY_PROJECT PATH The path to the Unity Project.
    • UNITY_EDITOR_VERSION The version of the Unity Editor that was installed.

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

This action does not require the use of XRTK in your Unity project.

Related Github Actions

How to use

jobs:
  setup-unity:
  strategy:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        include:
          - os: ubuntu-latest
            build-targets: 'StandaloneLinux64 Android iOS'
          - os: windows-latest
            build-targets: 'StandaloneWindows64 Android iOS'
          - os: macos-latest
            build-targets: 'StandaloneOSX Android iOS'

    steps:
      - uses: actions/checkout@v4

      - id: unity-setup
        uses: xrtk/unity-setup@v7
        with:
          build-targets: ${{ matrix.build-targets }} # Optional, specify the build targets to install
          version-file-path: 'ProjectSettings/ProjectVersion.txt' # Optional, specify a path to the unity project version text file
          # architecture: 'arm64' # Optional, specify the architecture to install (x86_64 or arm64)

      - run: |
          echo "${{ env.UNITY_EDITOR_PATH }}"
          echo "${{ env.UNITY_PROJECT_PATH }}"

About

A script to download and install the Unity Editor for Github Actions

Resources

License

Stars

Watchers

Forks

Sponsor this project