Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit eeac3c4

Browse files
@xrtk/unity-action@v5 (#8)
1 parent 5a15e9c commit eeac3c4

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @StephenHodgson

.github/workflows/validate.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
validate:
1919
runs-on: ${{ matrix.os }}
2020
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
2222
matrix:
2323
include:
2424
- os: ubuntu-latest
@@ -38,16 +38,17 @@ jobs:
3838
repository: xrtk/com.xrtk.test
3939
path: test-project
4040

41-
- uses: xrtk/unity-setup@v4
41+
- uses: xrtk/unity-setup@v6
4242
with:
43+
build-targets: ${{ matrix.build-target }}
4344
version-file-path: 'test-project/**/ProjectSettings/ProjectVersion.txt'
4445

45-
- uses: xrtk/activate-unity-license@v1
46+
- uses: xrtk/activate-unity-license@v2
4647
with:
4748
username: ${{ secrets.UNITY_USERNAME }}
4849
password: ${{ secrets.UNITY_PASSWORD }}
4950
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 ]
5152

5253
- name: xrtk/unity-action
5354
uses: ./

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ jobs:
3737
# sets -> env.UNITY_EDITOR_PATH
3838
# sets -> env.UNITY_PROJECT_PATH
3939
# 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 }}
4143

4244
# Activates the installation with the provided credentials
43-
- uses: xrtk/activate-unity-license@v1
45+
- uses: xrtk/activate-unity-license@v2
4446
with:
4547
# Required
4648
username: ${{ secrets.UNITY_USERNAME }}
@@ -49,7 +51,7 @@ jobs:
4951
license-type: 'Personal' # Chooses license type to use [ Personal, Professional ]
5052
serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations
5153

52-
- uses: xrtk/unity-action@v4
54+
- uses: xrtk/unity-action@v5
5355
name: '${{ matrix.build-target }}-Tests'
5456
with:
5557
name: '${{ matrix.build-target }}-Tests'
@@ -58,7 +60,7 @@ jobs:
5860
build-target: '${{ matrix.build-target }}'
5961
args: '-batchmode -runEditorTests'
6062

61-
- uses: xrtk/unity-action@v4
63+
- uses: xrtk/unity-action@v5
6264
name: '${{ matrix.build-target }}-Build'
6365
with:
6466
name: '${{ matrix.build-target }}-Build'

dist/unity-action.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ try {
5555
$ljob = Start-Job -ScriptBlock {
5656
param($log)
5757

58-
while ( -not (Test-Path $log -Type Leaf) ) {
58+
while ( -not (Test-Path -Path $log -Type Leaf) ) {
5959
Start-Sleep -Milliseconds 1
6060
}
6161

62-
Get-Content "$log" -Wait
62+
Get-Content -Path $log -Wait | Write-Host
6363
} -ArgumentList $logPath
6464

6565
$processId = $process.Id

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-action",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"description": "An atomic GitHub Action that runs the Unity engine via cli with the provided parameters.",
55
"main": "src/index.js",
66
"scripts": {

src/unity-action.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ try {
5555
$ljob = Start-Job -ScriptBlock {
5656
param($log)
5757

58-
while ( -not (Test-Path $log -Type Leaf) ) {
58+
while ( -not (Test-Path -Path $log -Type Leaf) ) {
5959
Start-Sleep -Milliseconds 1
6060
}
6161

62-
Get-Content "$log" -Wait
62+
Get-Content -Path $log -Wait | Write-Host
6363
} -ArgumentList $logPath
6464

6565
$processId = $process.Id

0 commit comments

Comments
 (0)