Skip to content

update build_meta_quest3 #5

update build_meta_quest3

update build_meta_quest3 #5

name: Build Meta Quest3
on: [push]
jobs:
buildForAndroid:
name: Build for ${{ matrix.targetPlatform }}
# run on latest windows
runs-on: windows-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
- 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: 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