Skip to content

Commit

Permalink
Add Q2+ build to CI (not pushed to Oculus yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeage committed Oct 1, 2024
1 parent f4698a4 commit a45ed55
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,20 @@ jobs:
fail-fast: false
matrix:
flavors: ${{ fromJson(needs.configuration.outputs.flavors) }}
name: [Windows] # These will all be overwritten, but because we have the flavors matrix as well, we can't just add configurations via include; they'll overwrite each other. This way ensures that we get each one
name: [Windows, Oculus Quest (2+)] # These will all be overwritten, but because we have the flavors matrix as well, we can't just add configurations via include; they'll overwrite each other. This way ensures that we get each one
include:
- name: Windows
targetPlatform: StandaloneWindows64
cache: Windows

- name: Oculus Quest (2+)
targetPlatform: Android
vrsdk: Oculus
cache: Android_Vulkan
extraoptions: -btb-il2cpp
versionSuffix: 1
extra_defines: OCULUS_SUPPORTED

steps:
- name: Set masking
run: echo "::add-mask::DoNotStealThis1"
Expand Down Expand Up @@ -288,7 +296,7 @@ jobs:
elif [[ "${{ matrix.targetPlatform}}" == "StandaloneOSX" ]]; then
echo "filename=$BASENAME.app" >> $GITHUB_ENV
elif [[ "${{ matrix.targetPlatform}}" == "Android" ]]; then
echo "filename=com.Icosa.$BASENAME.apk" >> $GITHUB_ENV
echo "filename=foundation.Icosa.$BASENAME.apk" >> $GITHUB_ENV
fi
- name: Enable Development Mode
Expand Down Expand Up @@ -463,15 +471,22 @@ jobs:
with:
name: Windows
path: build_windows
- name: Download Build Artifacts (Oculus Quest 2+)
uses: actions/download-artifact@v4
with:
name: Oculus Quest (2+)
path: build_oculus_quest

- name: Package Artifacts for release
env:
VERSION: ${{ needs.configuration.outputs.version }}
run: |
mkdir releases
mv build_windows/StandaloneWindows64/ releases/OpenBlocks_Desktop_$VERSION/
mv build_oculus_quest/*/foundation.Icosa.OpenBLocks*apk releases/OpenBlocks_Quest_$VERSION.apk
cd releases
zip -r OpenBlocks_Desktop_$VERSION.zip OpenBlocks_Desktop_$VERSION/
rm -rf OpenBlocks_Desktop_$VERSION
- name: Publish
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit a45ed55

Please sign in to comment.