-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.24 KB
/
Unity.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
name: CI Build
on:
push:
branches:
- master
permissions:
contents: write
jobs:
buildForAllSupportedPlatforms:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
targetPlatform:
- StandaloneWindows64
- StandaloneOSX
- WebGL
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-
- uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
customImage: 'unityci/editor:2023.1.9f1-windows-mono-2.0.0'
- uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}
- name: Create Release
if: matrix.targetPlatform == 'StandaloneWindows64'
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "unity-github-actions-build"
tag: v1.2.2