|
43 | 43 | fastlanelane: ${{ steps.version.outputs.fastlanelane}}
|
44 | 44 | uid: ${{ steps.github.outputs.uid }}
|
45 | 45 | gid: ${{ steps.github.outputs.gid }}
|
| 46 | + flavors: ${{ steps.flavors.outputs.flavors }} |
46 | 47 | steps:
|
47 | 48 | - name: Checkout repository
|
48 | 49 | uses: actions/checkout@v4
|
@@ -155,14 +156,28 @@ jobs:
|
155 | 156 | fi
|
156 | 157 | echo "uid=$(id -u)" >> $GITHUB_OUTPUT
|
157 | 158 | echo "gid=$(id -g)" >> $GITHUB_OUTPUT
|
| 159 | +
|
| 160 | + - name: Determine whether to build Development builds or not |
| 161 | + id: flavors |
| 162 | + run: | |
| 163 | + set -x |
| 164 | + if [[ $(git log --format=%B ${{ github.event.pull_request.head.sha }} -1) == *'[CI BUILD DEV]'* ]] |
| 165 | + then |
| 166 | + echo 'flavors=[{"development": true, "title": "Development"}, {"development": false}]' >> $GITHUB_OUTPUT |
| 167 | +
|
| 168 | + else |
| 169 | + echo 'flavors=[{"development": false}]' >> $GITHUB_OUTPUT |
| 170 | + fi |
| 171 | +
|
158 | 172 | build:
|
159 |
| - name: ${{ matrix.name }} |
| 173 | + name: ${{ matrix.name }} ${{ matrix.flavors.title }} |
160 | 174 | needs: configuration
|
161 | 175 | runs-on: ubuntu-latest
|
162 | 176 | strategy:
|
163 | 177 | fail-fast: false
|
164 | 178 | matrix:
|
165 |
| - # We don't use an actual matrix because there's more exceptions than actual cases! |
| 179 | + flavors: ${{ fromJson(needs.configuration.outputs.flavors) }} |
| 180 | + name: [Windows OpenXR, Windows Pimax, Windows Rift, Linux, MacOS, Android OpenXR, Oculus Quest (1), Oculus Quest (2+), Android Pico, Android Pico (CN), iOS Zapbox] # 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 |
166 | 181 | include:
|
167 | 182 | - name: Windows OpenXR
|
168 | 183 | targetPlatform: StandaloneWindows64
|
@@ -275,7 +290,7 @@ jobs:
|
275 | 290 | lfs: true # We don't use LFS, but it adds no time, and leave it here in case we do at some point later
|
276 | 291 |
|
277 | 292 | - name: Install Pimax unity package
|
278 |
| - if: matrix.name == 'Windows Pimax' |
| 293 | + if: startsWith(matrix.name, 'Windows Pimax') |
279 | 294 | run: |
|
280 | 295 | # version 0.6.3
|
281 | 296 | # Same as above, but adapted to work for Pimax instead.
|
@@ -401,6 +416,11 @@ jobs:
|
401 | 416 | run: |
|
402 | 417 | echo "stamp=-btb-stamp ${{needs.configuration.outputs.stamp}}" >> $GITHUB_ENV
|
403 | 418 |
|
| 419 | + - name: Enable Development Mode |
| 420 | + if: ${{ matrix.flavors.development == true }} |
| 421 | + run: | |
| 422 | + echo "btbbopts=-btb-bopt Development" >> $GITHUB_ENV |
| 423 | +
|
404 | 424 | - name: Update version
|
405 | 425 | env:
|
406 | 426 | VERSION: ${{ needs.configuration.outputs.version}}
|
@@ -445,7 +465,7 @@ jobs:
|
445 | 465 | allowDirtyBuild: true # Because of the OVR Update, the build tree might be dirty
|
446 | 466 | unityVersion: ${{ env.UNITY_VERSION }}
|
447 | 467 | targetPlatform: ${{ matrix.targetPlatform }}
|
448 |
| - customParameters: -btb-target ${{ matrix.targetPlatform }} -btb-display ${{ matrix.vrsdk }} -btb-out /github/workspace/build/${{ matrix.vrsdk }}/${{ matrix.targetPlatform }}/${{ env.filename }} ${{ needs.configuration.outputs.description}} ${{ env.stamp }} ${{ matrix.extraoptions }} |
| 468 | + customParameters: -btb-target ${{ matrix.targetPlatform }} -btb-display ${{ matrix.vrsdk }} -btb-out /github/workspace/build/${{ matrix.vrsdk }}/${{ matrix.targetPlatform }}/${{ env.filename }} ${{ needs.configuration.outputs.description}} ${{ env.stamp }} ${{ env.btbbopts }} ${{ matrix.extraoptions }} |
449 | 469 | versioning: Custom
|
450 | 470 | androidVersionCode: "${{ needs.configuration.outputs.androidVersionCode }}${{ matrix.versionSuffix }}"
|
451 | 471 | version: ${{ needs.configuration.outputs.version }}
|
@@ -485,7 +505,7 @@ jobs:
|
485 | 505 | allowDirtyBuild: true # Because of the OVR Update, the build tree might be dirty
|
486 | 506 | unityVersion: ${{ env.UNITY_VERSION }}
|
487 | 507 | targetPlatform: ${{ matrix.targetPlatform }}
|
488 |
| - customParameters: -btb-target ${{ matrix.targetPlatform }} -btb-display ${{ matrix.vrsdk }} -btb-out /github/workspace/build/${{ matrix.vrsdk }}/${{ matrix.targetPlatform }}/${{ env.filename }} ${{ needs.configuration.outputs.description}} ${{ env.stamp }} ${{ matrix.extraoptions }} |
| 508 | + customParameters: -btb-target ${{ matrix.targetPlatform }} -btb-display ${{ matrix.vrsdk }} -btb-out /github/workspace/build/${{ matrix.vrsdk }}/${{ matrix.targetPlatform }}/${{ env.filename }} ${{ needs.configuration.outputs.description}} ${{ env.stamp }} ${{ env.btbbopts }} ${{ matrix.extraoptions }} |
489 | 509 | versioning: Custom
|
490 | 510 | androidVersionCode: "${{ needs.configuration.outputs.androidVersionCode }}${{ matrix.versionSuffix }}"
|
491 | 511 | version: ${{ needs.configuration.outputs.version }}
|
|
0 commit comments