This repository was archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (66 loc) · 1.89 KB
/
main.yml
File metadata and controls
71 lines (66 loc) · 1.89 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CoreSystem Release Action
on:
push:
branches: [none]
jobs:
activation:
runs-on: ubuntu-latest
steps:
# Request manual activation file
- name: Request manual activation file
id: getManualLicenseFile
uses: game-ci/unity-request-activation-file@v2
# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v1
with:
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
start:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2020.2.6f1
targetPlatform:
- StandaloneWindows64
steps:
# Check Out
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
lfs: true
# Test
- name: Run tests
id: testRunner
uses: game-ci/unity-test-runner@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Save Results
uses: actions/upload-artifact@v2
if: always()
with:
name: Test Results
path: ${{ steps.testRunner.outputs.artifactsPath }}
build:
needs: start
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2020.2.6f1
targetPlatform:
- StandaloneWindows64
steps:
# Activate Unity License
- name: Unity - Activate
uses: game-ci/unity-activate@v1.3
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}