Feature/177 quest log v2 + Hero Status menu v1 #218
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gothic-UnZENity Build Jobs | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- labeled | |
env: | |
HVRversion: 'v2.9.2' | |
jobs: | |
######### | |
# DEV COMPILE WITHOUT HVR # | |
######### | |
testCompileWithoutHVR: | |
name: Compile test without HVR installation | |
runs-on: self-hosted | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
clean: true | |
- name: Remove PlayerSetting HVR symbol temporarily | |
run: sed -i 's/GUZ_HVR_INSTALLED/GUZ_PLACEHOLDER/g' ProjectSettings/ProjectSettings.asset | |
- name: Build project | |
uses: game-ci/unity-builder@v4 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
targetPlatform: StandaloneWindows64 | |
allowDirtyBuild: true | |
buildMethod: GUZ.VR.Editor.VRBuilderActions.PerformWindows64Build | |
######### | |
# BUILD # | |
######### | |
buildForAllPlatforms: | |
if: ${{ github.event.label.name == 'pipeline-test-build' }} | |
name: Build Gothic-UnZENity | |
runs-on: self-hosted | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- targetPlatform: StandaloneWindows64 | |
targetDevice: Windows64 | |
- targetPlatform: Android | |
targetDevice: Pico | |
- targetPlatform: Android | |
targetDevice: Quest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
clean: true | |
- uses: actions/cache@v4 | |
with: | |
path: Library | |
key: Library-${{ matrix.targetPlatform }} | |
restore-keys: Library- | |
### | |
# Checkout and install HurricaneVR | |
### | |
# PAT_ASSET_REPO_CHECKOUT expires once per year. An Admin need to create a new one as ORG_PAT if expired. | |
- name: Check out HVR .unitypackage from private repository | |
uses: actions/checkout@v4 | |
with: | |
repository: Gothic-UnZENity-Project/asset-dependencies | |
ref: main | |
path: Checkout/AssetRepo | |
token: ${{ secrets.PAT_ASSET_REPO_CHECKOUT }} | |
- name: Copy HVR package | |
run: | | |
mkdir Assets/HuricaneVR; | |
mv Checkout/AssetRepo/HVR/${{env.HVRversion}}/ Assets/HurricaneVR; | |
### | |
# Build | |
### | |
- name: Build project | |
uses: game-ci/unity-builder@v4 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
targetPlatform: ${{ matrix.targetPlatform }} | |
allowDirtyBuild: true | |
buildMethod: GUZ.VR.Editor.VRBuilderActions.Perform${{ matrix.targetDevice }}Build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Gothic-UnZENity-${{ matrix.targetDevice }} | |
path: Builds/${{ matrix.targetDevice }} | |
retention-days: 7 |