Repository navigation
111 lines (107 loc) · 3.81 KB
/
Copy pathinstaller-deploy.yml
File metadata and controls
111 lines (107 loc) · 3.81 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Installer Deploy CI
on:
push:
branches:
- "main"
paths:
- "client_installer/**"
workflow_dispatch:
jobs:
Test:
timeout-minutes: 30
name: Tests ${{ matrix.unityVersion }} ${{ matrix.testMode }}
runs-on: ubuntu-latest
concurrency:
group: unity-tests-${{ matrix.unityVersion }}-${{ matrix.testMode }}-${{ github.head_ref }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
projectPath:
- ./client_installer
testMode:
- playmode
unityVersion:
- 2019.4.17f1
- 2020.3.19f1
- 2021.3.2f1
steps:
- uses: actions/checkout@v5
- name: Cache Unity Folders
uses: actions/cache@v5
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
restore-keys: |
Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
- uses: game-ci/unity-test-runner@0ff419b913a3630032cbe0de48a0099b5a9f0ed9 # v4.3.1 -- pinned; see commit message
id: tests
timeout-minutes: 20
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
customParameters: -warnaserror+
projectPath: ${{ matrix.projectPath }}
testMode: ${{ matrix.testMode }}
unityVersion: ${{ matrix.unityVersion }}
artifactsPath: ${{ matrix.testMode }}-${{ matrix.unityVersion }}-artifacts
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: ${{ matrix.unityVersion }} ${{ matrix.testMode }} Test Results
- uses: actions/upload-artifact@v6
if: always()
with:
name: Test results for ${{ matrix.unityVersion }} ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.artifactsPath }}
retention-days: 1
Build:
name: Build for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
timeout-minutes: 60
concurrency:
group: device-builds-${{ matrix.targetPlatform }}-${{ github.head_ref }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows
unityVersion:
- 2019.4.17f1
projectPath:
- client_installer
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
lfs: true
- name: Cache Unity Folders
uses: actions/cache@v5
with:
path: |
${{ matrix.projectPath }}/Library
${{ matrix.projectPath }}/Temp
${{ matrix.projectPath }}/obj
key: Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}
restore-keys: |
Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}
- uses: game-ci/unity-builder@v4
timeout-minutes: 30
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
unityVersion: ${{ matrix.unityVersion }}
projectPath: ${{ matrix.projectPath }}
buildMethod: Build.Export
- name: List directory
working-directory: ${{ matrix.projectPath }}
run: |
ls
shell: bash
- name: Upload
working-directory: ${{ matrix.projectPath }}
run: AWS_ACCESS_KEY_ID=${{secrets.AWS_KEY_ID_INSTALLER}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY_INSTALLER}} AWS_REGION=us-west-2 aws s3 cp ./Beamable_SDK_Installer.unitypackage ${{secrets.AWS_BUCKET_BUILDS_INSTALLER}} --acl public-read