-
Notifications
You must be signed in to change notification settings - Fork 40
64 lines (56 loc) · 2.06 KB
/
unity-builder.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
name: Unity Builder
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows
#- WebGL
unityVersion:
- 2019.3.15f1
- 2019.4.40f1
- 2020.3.48f1
- 2021.3.45f1
- 2022.3.43f1
- 6000.0.23f1
include:
- targetPlatform: WebGL
unityVersion: 2019.3.15f1
- targetPlatform: WebGL
unityVersion: 6000.0.23f1
steps:
#Build Checkout
- uses: actions/[email protected]
with:
fetch-depth: 0
lfs: true
#Build Cache
- uses: actions/[email protected]
with:
path: Library
key: Library-${{ matrix.unityVersion }}
restore-keys:
Library-${{ matrix.unityVersion }}
#Build
- uses: game-ci/[email protected]
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'
#Build Artifact
- uses: actions/[email protected]
with:
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
path: build/${{ matrix.targetPlatform }}