-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (49 loc) · 1.55 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
54
55
56
# For ci we just need testing, as that would check compilation also
# Need to create a test suit and change this workflow
name: Build
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
build:
name: Build For ${{ matrix.build.target }}
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build:
- { target: Android, method: CodeBlaze.Editor.Build.Builder.BuildAndroidRelease }
- { target: StandaloneWindows64, method: CodeBlaze.Editor.Build.Builder.BuildWindowsRelease }
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- uses: actions/cache@v3
with:
path: Library
key:
Library-${{ matrix.targetPlatform }}-${{ hashFiles('.') }}
restore-keys: |
Library-${{ matrix.targetPlatform }}-
Library-
- if: matrix.targetPlatform == 'Android'
uses: jlumbroso/[email protected]
- uses: game-ci/unity-builder@v3
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.build.target }}
buildMethod: ${{ matrix.build.method }}
- uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.build.target }}
path: |
Build
!**/*DoNotShip*/**
!**/*ButDontShipItWithYourGame*/**