forked from intuitive-robots/IRXR-Unity
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.68 KB
/
build_meta_quest3.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
name: Build Meta Quest3
on: [push]
jobs:
buildForAndroid:
name: Build for ${{ matrix.targetPlatform }}
# run on latest ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- "."
unityVersion:
- 2022.3.0f1 # TODO automatically get right version from ProjectSettings/ProjectVersion.txt
targetPlatform:
- Android
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
# install mp4 codecs
- name: Install mp4 codecs
run: sudo apt-get install ubuntu-restricted-extras
- uses: actions/cache@v3
with:
path: ${{ matrix.projectPath }}/Library
key:
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{
hashFiles(matrix.projectPath) }}
restore-keys: |
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-
Library-${{ matrix.projectPath }}-
Library-
- uses: jlumbroso/[email protected]
- uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
customParameters: ""
androidExportType: "androidAppBundle"
# TODO maybe androidKeystore Setup?
- uses: actions/upload-artifact@v3
with:
name: MetaQuest3Build
path: build/MetaQuest3