This repository was archived by the owner on Aug 16, 2024. It is now read-only.
File tree 6 files changed +17
-13
lines changed 6 files changed +17
-13
lines changed Original file line number Diff line number Diff line change
1
+ * @ StephenHodgson
Original file line number Diff line number Diff line change 18
18
validate :
19
19
runs-on : ${{ matrix.os }}
20
20
strategy :
21
- # max-parallel: 2 # Use this if you're activating pro license with matrix
21
+ max-parallel : 2 # Use this if you're activating pro license with matrix
22
22
matrix :
23
23
include :
24
24
- os : ubuntu-latest
@@ -38,16 +38,17 @@ jobs:
38
38
repository : xrtk/com.xrtk.test
39
39
path : test-project
40
40
41
- - uses : xrtk/unity-setup@v4
41
+ - uses : xrtk/unity-setup@v6
42
42
with :
43
+ build-targets : ${{ matrix.build-target }}
43
44
version-file-path : ' test-project/**/ProjectSettings/ProjectVersion.txt'
44
45
45
- - uses : xrtk/activate-unity-license@v1
46
+ - uses : xrtk/activate-unity-license@v2
46
47
with :
47
48
username : ${{ secrets.UNITY_USERNAME }}
48
49
password : ${{ secrets.UNITY_PASSWORD }}
49
50
serial : ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations
50
- license-type : ' Personal ' # Chooses license type to use [ Personal, Professional ]
51
+ license-type : ' Professional ' # Chooses license type to use [ Personal, Professional ]
51
52
52
53
- name : xrtk/unity-action
53
54
uses : ./
Original file line number Diff line number Diff line change @@ -37,10 +37,12 @@ jobs:
37
37
# sets -> env.UNITY_EDITOR_PATH
38
38
# sets -> env.UNITY_PROJECT_PATH
39
39
# https://github.com/XRTK/unity-setup
40
- - uses : xrtk/unity-setup@v4
40
+ - uses : xrtk/unity-setup@v6
41
+ with :
42
+ build-targets : ${{ matrix.build-target }}
41
43
42
44
# Activates the installation with the provided credentials
43
- - uses : xrtk/activate-unity-license@v1
45
+ - uses : xrtk/activate-unity-license@v2
44
46
with :
45
47
# Required
46
48
username : ${{ secrets.UNITY_USERNAME }}
49
51
license-type : ' Personal' # Chooses license type to use [ Personal, Professional ]
50
52
serial : ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations
51
53
52
- - uses : xrtk/unity-action@v4
54
+ - uses : xrtk/unity-action@v5
53
55
name : ' ${{ matrix.build-target }}-Tests'
54
56
with :
55
57
name : ' ${{ matrix.build-target }}-Tests'
58
60
build-target : ' ${{ matrix.build-target }}'
59
61
args : ' -batchmode -runEditorTests'
60
62
61
- - uses : xrtk/unity-action@v4
63
+ - uses : xrtk/unity-action@v5
62
64
name : ' ${{ matrix.build-target }}-Build'
63
65
with :
64
66
name : ' ${{ matrix.build-target }}-Build'
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ try {
55
55
$ljob = Start-Job - ScriptBlock {
56
56
param ($log )
57
57
58
- while ( -not (Test-Path $log - Type Leaf) ) {
58
+ while ( -not (Test-Path - Path $log - Type Leaf) ) {
59
59
Start-Sleep - Milliseconds 1
60
60
}
61
61
62
- Get-Content " $log " - Wait
62
+ Get-Content - Path $log - Wait | Write-Host
63
63
} - ArgumentList $logPath
64
64
65
65
$processId = $process.Id
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " unity-action" ,
3
- "version" : " 4 .0.0" ,
3
+ "version" : " 5 .0.0" ,
4
4
"description" : " An atomic GitHub Action that runs the Unity engine via cli with the provided parameters." ,
5
5
"main" : " src/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ try {
55
55
$ljob = Start-Job - ScriptBlock {
56
56
param ($log )
57
57
58
- while ( -not (Test-Path $log - Type Leaf) ) {
58
+ while ( -not (Test-Path - Path $log - Type Leaf) ) {
59
59
Start-Sleep - Milliseconds 1
60
60
}
61
61
62
- Get-Content " $log " - Wait
62
+ Get-Content - Path $log - Wait | Write-Host
63
63
} - ArgumentList $logPath
64
64
65
65
$processId = $process.Id
You can’t perform that action at this time.
0 commit comments