-
-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (68 loc) · 2.47 KB
/
valdate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: unity-build-validation
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# max-parallel: 2 # Use this if you're activating pro license with matrix
fail-fast: false
matrix:
include:
- os: ubuntu-latest
build-target: StandaloneLinux64
- os: windows-latest
build-target: StandaloneWindows64
- os: macos-latest
build-target: StandaloneOSX
steps:
- name: checkout self
uses: actions/checkout@v4
- name: checkout test project
uses: actions/checkout@v4
with:
repository: RageAgainstThePixel/com.utilities.buildpipeine
path: test-project
# Installs the Unity Editor based on your project version text file
# sets -> env.UNITY_EDITOR_PATH
# sets -> env.UNITY_PROJECT_PATH
# https://github.com/XRTK/unity-setup
- uses: xrtk/unity-setup@v7
with:
build-targets: ${{ matrix.build-target }}
version-file-path: 'test-project/**/ProjectSettings/ProjectVersion.txt'
# Activates the installation with the provided credentials
# https://github.com/XRTK/activate-unity-license
- uses: xrtk/activate-unity-license@v5
with:
# Required
username: ${{ secrets.UNITY_USERNAME }}
password: ${{ secrets.UNITY_PASSWORD }}
# Optional
license-type: 'Personal' # Chooses license type to use [ Personal, Professional ]
auth-key: ${{ secrets.UNITY_2FA_KEY }} # Required for personal activations
# serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations
- name: Unity Build (${{ matrix.build-target }})
uses: ./ #RageAgainstThePixel/unity-build
with:
build-target: ${{ matrix.build-target }}
- name: Unity Build No Tests (${{ matrix.build-target }})
uses: ./ #RageAgainstThePixel/unity-build
with:
build-target: ${{ matrix.build-target }}
test: false
- name: Unity Build No Artifacts (${{ matrix.build-target }})
uses: ./ #RageAgainstThePixel/unity-build
with:
build-target: ${{ matrix.build-target }}
publish-artifacts: false