重要的
此操作不再維護並已移至 buildalon/unity-setup
用於為跑步者下載並安裝 Unity 編輯器的原子 GitHub 操作。
如果找到有效的安裝,則跳過安裝。
如果有效建置目標缺少模組,則會安裝該模組。
輸出:
UNITY_EDITOR_PATH Unity 編輯器安裝路徑。
UNITY_PROJECT PATH Unity 專案的路徑。
UNITY_EDITOR_VERSION已安裝的 Unity 編輯器的版本。
混合實境工具包 (XRTK) 開源專案的一部分。
此操作不需要在 Unity 專案中使用 XRTK。
xrtk/啟動統一許可證
xrtk/團結行動
xrtk/unity-build (需要 Unity 專案中的 XRTK 插件)
作業:設定統一:策略:執行:${{matrix.os}}策略:矩陣:包含:
- os: ubuntu-latestbuild-targets: 'StandaloneLinux64 Android iOS' - os: windows-latestbuild-targets: 'StandaloneWindows64 Android iOS' - os: macos-latestbuild-targets: 'StandaloneOSX AndStandaloneOSX:Stroid
- use: actions/checkout@v4 - id: unity-setupuses: xrtk/unity-setup@v7with: build-targets: ${{ matrix.build-targets }} # 可選,指定要安裝version-file- 的構建目標path: 'ProjectSettings/ProjectVersion.txt' # 可選,指定 Unity 專案版本文字檔案的路徑 # Architecture: 'arm64' # 可選,指定要安裝的架構(x86_64 或 arm64) - run: | 迴聲“${{ env.UNITY_EDITOR_PATH }}”迴聲“${{ env.UNITY_PROJECT_PATH }}”