Skip to content

Commit eee7a67

Browse files
- fixed `unity-version` not properly overriding version in `version-file`. - fixed `version-file` not properly being found when using relative paths. - optimized TargetAndroidSDK installation.
1 parent e85cf27 commit eee7a67

File tree

11 files changed

+29180
-29847
lines changed

11 files changed

+29180
-29847
lines changed

.github/workflows/validate.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: validate
22
on:
3+
schedule:
4+
- cron: '0 0 * * 0' # Run every Sunday at midnight
35
push:
46
branches:
57
- 'main'
@@ -24,6 +26,7 @@ jobs:
2426
matrix:
2527
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
2628
unity-versions:
29+
- 'in version file'
2730
- 2019.4.40f1 (ffc62b691db5)
2831
- 2020.3.48f1 (b805b124c6b7)
2932
- 2021.3.41f1 (6c5a9e20c022)
@@ -52,8 +55,8 @@ jobs:
5255

5356
- uses: ./ # RageAgainstThePixel/unity-setup
5457
with:
55-
# version-file: 'com.utilities.buildpipline/Utilities.BuildPipeline/ProjectSettings/ProjectVersion.txt'
56-
unity-version: ${{ matrix.unity-versions }} # overrides the version in the version file
58+
version-file: com.utilities.buildpipline/Utilities.BuildPipeline/ProjectSettings/ProjectVersion.txt
59+
unity-version: ${{ matrix.unity-versions }}
5760
build-targets: ${{ matrix.build-targets }}
5861
modules: ${{ matrix.modules }}
5962

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ A GitHub Action for setting up the [Unity Game Engine](https://unity.com) on Git
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
13-
unity-versions: [2020.3.48f1 (b805b124c6b7), 2021.3.41f1 (6c5a9e20c022), 2022.3.40f1 (cbdda657d2f0)]
13+
unity-versions:
14+
- 'in version file'
15+
- 2019.4.40f1 (ffc62b691db5)
16+
- 2020.3.48f1 (b805b124c6b7)
17+
- 2021.3.41f1 (6c5a9e20c022)
18+
- 2022.3.40f1 (cbdda657d2f0)
19+
- 6000.0.13f1 (53a692e3fca9)
1420
include:
1521
- os: ubuntu-latest
1622
build-targets: StandaloneLinux64, Android, iOS
@@ -45,7 +51,7 @@ steps:
4551
| ----------- | ----------- | ----------- |
4652
| `version-file` | Specify a path to search for the unity project version text file. Useful if there are multiple projects in a single repo. | false |
4753
| `unity-version` | Specify the Unity version(s) to install. You must include the changeset! i.e `2019.4.13f1 (518737b1de84)`. ***This will override any version specified in the `version-file`!*** | false |
48-
| `build-targets` | Specify the build targets to install for. Remaps to corresponding module. One or more of `StandaloneWindows64` `WSAPlayer` `StandaloneOSX` `iOS` `StandaloneLinux64` `Android` `Lumin` `WebGL`. | false |
54+
| `build-targets` | Specify the build targets to install for. Remaps to corresponding module. One or more of `StandaloneWindows64` `WSAPlayer` `StandaloneOSX` `iOS` `StandaloneLinux64` `Android` `Lumin` `WebGL` `VisionOS`. | false |
4955
| `modules` | Modules to install with the editor. This list can be different per editor version. | false |
5056
| `architecture` | Specify the architecture to install. Either `x86_64` or `arm64`. | false |
5157

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
required: false
1111
default: ''
1212
build-targets:
13-
description: 'Specify the build targets to install modules for. One or more of `StandaloneWindows64` `WSAPlayer` `StandaloneOSX` `iOS` `StandaloneLinux64` `Android` `Lumin` `WebGL`.'
13+
description: 'Specify the build targets to install modules for. One or more of `StandaloneWindows64` `WSAPlayer` `StandaloneOSX` `iOS` `StandaloneLinux64` `Android` `Lumin` `WebGL` `VisionOS`.'
1414
required: false
1515
default: ''
1616
modules:

0 commit comments

Comments
 (0)