-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (43 loc) · 1.18 KB
/
build-windows.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
name: Build Project
on:
push:
branches: master
workflow_dispatch: {}
jobs:
build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneOSX
- StandaloneWindows64
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v3
# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: |
Library-
# Build
- name: Build project
uses: game-ci/unity-builder@v3
id: buildStep
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildName: hatbor
versioning: Semantic
# Output
- uses: actions/upload-artifact@v3
with:
name: hatbor-${{ matrix.targetPlatform }}-${{ steps.buildStep.outputs.buildVersion }}
path: build/${{ matrix.targetPlatform }}