generated from ayutaz/unity_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.15 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
52
53
name: Build
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# Controls when the action will run.
on:
workflow_dispatch: {}
push:
branches:
- main
paths-ignore:
- '.github/**'
# Triggers the workflow on push or pull request events but only for the main branch
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- .
unityVersion:
- 2022.2.0f1
targetPlatform:
- WebGL
steps:
- name: Checkout
uses: actions/[email protected]
with:
lfs: true
clean: false
# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library
# Build
- name: Build project
uses: game-ci/[email protected]
with:
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
# Output
- uses: actions/[email protected]
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}