6
6
branches : [main]
7
7
pull_request :
8
8
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress : true
12
+
9
13
jobs :
10
14
test :
11
15
if : github.event.pull_request.head.repo.fork == false
40
44
with :
41
45
name : Coverage results
42
46
path : ${{ steps.passportTest.outputs.coveragePath }}
43
- windows-build :
44
- name : Windows Build for ${{ matrix.targetPlatform }}
45
- runs-on : windows-2022
46
- strategy :
47
- fail-fast : false
48
- matrix :
49
- targetPlatform :
50
- - Android
51
- - StandaloneWindows64
52
- steps :
53
- - uses : actions/checkout@v4
54
- with :
55
- fetch-depth : 0
56
- lfs : true
57
- - uses : actions/cache@v3
58
- with :
59
- path : Library
60
- key :
61
- Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
62
- restore-keys : |
63
- Library-${{ matrix.targetPlatform }}
64
- Library-
65
- - uses : game-ci/unity-builder@v4
66
- env :
67
- UNITY_EMAIL : ${{ secrets.UNITY_EMAIL }}
68
- UNITY_PASSWORD : ${{ secrets.UNITY_PASSWORD }}
69
- UNITY_SERIAL : ${{ secrets.UNITY_SERIAL }}
70
- with :
71
- unityVersion : 2021.3.26f1
72
- targetPlatform : ${{ matrix.targetPlatform }}
73
- projectPath : ' ./src/Packages/Passport/Samples~/sample'
74
- - uses : actions/upload-artifact@v3
75
- with :
76
- name : Build-windows-${{ matrix.targetPlatform }}
77
- path : build
78
- macos-build :
79
- name : macOS Build for ${{ matrix.targetPlatform }}
80
- runs-on : macos-latest
47
+ build :
48
+ name : Build for ${{ matrix.targetPlatform }}
49
+ runs-on : ubuntu-latest-8-cores
81
50
strategy :
82
51
fail-fast : false
83
52
matrix :
86
55
- Android
87
56
- WebGL
88
57
- StandaloneOSX
58
+ - StandaloneWindows64
89
59
steps :
90
60
- uses : actions/checkout@v4
91
61
with :
110
80
projectPath : ' ./src/Packages/Passport/Samples~/sample'
111
81
- uses : actions/upload-artifact@v3
112
82
with :
113
- name : Build-macos- ${{ matrix.targetPlatform }}
114
- path : build
83
+ name : Build-${{ matrix.targetPlatform }}
84
+ path : build
0 commit comments