-
Notifications
You must be signed in to change notification settings - Fork 34
51 lines (46 loc) · 1.36 KB
/
build.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
name: Build package
on:
push:
branches: [master]
pull_request:
jobs:
test:
name: Run Build for ${{ matrix.unityVersion }} ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- test-package
unityVersion:
- 2019.4.40f1
targetPlatform:
- StandaloneOSX
- StandaloneWindows
- StandaloneWindows64
- StandaloneLinux64
- iOS
- Android
- WebGL
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
lfs: true
- name: Setup Environment
run: |
mkdir ${{ matrix.projectPath }}
mv Editor Runtime Tests Android iOS Windows package.json ${{ matrix.projectPath }}/
- if: matrix.targetPlatform == 'Android'
uses: jlumbroso/[email protected]
- uses: game-ci/unity-builder@v4
name: Build game for platform ${{ matrix.targetPlatform }}
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
projectPath: ${{ matrix.projectPath }}/
allowDirtyBuild: true