Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/main.ci.cd.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,12 @@ jobs:
run: |
git diff

- name: Build Sample Project
# UnityLinker and il2cpp sometimes SIGSEGV (exit 139) during the Android player
# build. The same job usually passes on a second attempt. One retry, with the
# same leftover-container and license cleanup the test steps use.
- name: Build Sample Project (Attempt 1)
id: build_sample_1
continue-on-error: true
uses: game-ci/unity-builder@4423ee75828dff56037d1d1cfdac6b68e3a6ba00 # v4.8.2
env:
UNITY_EMAIL: ${{ vars.UNITY_EMAIL }}
Expand All @@ -247,7 +252,28 @@ jobs:
customImage: ${{ env.DOCKER_TAG }}
allowDirtyBuild: true #Needed because the import process may update ProjectSettings

- name: Reset Unity state before build retry
if: steps.build_sample_1.outcome == 'failure'
run: bash .github/workflows/scripts/reset-unity-state.sh

- name: Build Sample Project (Attempt 2)
id: build_sample_2
if: steps.build_sample_1.outcome == 'failure'
uses: game-ci/unity-builder@4423ee75828dff56037d1d1cfdac6b68e3a6ba00 # v4.8.2
env:
UNITY_EMAIL: ${{ vars.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
targetPlatform: ${{ matrix.target_platform == 'android' && 'Android' || '' }}
androidTargetSdkVersion: ${{ matrix.target_platform == 'android' && 'AndroidApiLevel33' || '' }}
buildMethod: StreamVideo.EditorTools.StreamEditorTools.BuildSampleApp
customParameters: -apiCompatibility ${{ matrix.dotnet_version }} -scriptingBackend ${{ matrix.compiler }} -buildTargetPlatform ${{ matrix.target_platform }} -buildTargetPath SampleAppBuild/${{ env.BUILD_NAME }}
customImage: ${{ env.DOCKER_TAG }}
allowDirtyBuild: true #Needed because the import process may update ProjectSettings

- name: Upload Build as Artifact
if: steps.build_sample_1.outcome == 'success' || steps.build_sample_2.outcome == 'success'
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: Build_${{ env.BUILD_NAME }}
Expand Down
Loading