Skip to content

Commit a1c3499

Browse files
authored
Merge branch 'feat/ci-refactor' into feat/ci-refactor-1
2 parents 320a558 + 383acb1 commit a1c3499

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

.github/workflows/android-smoke-test-build.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ jobs:
4949
- name: Extract project archive
5050
run: tar -xvzf test-project.tar.gz
5151

52-
# - name: Build without Sentry SDK
53-
# run: ./test/Scripts.Integration.Test/build-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform "Android"
54-
5552
- name: Download UPM package
5653
uses: vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848
5754
with:
@@ -65,15 +62,12 @@ jobs:
6562
run: ./test/Scripts.Integration.Test/add-sentry.ps1 -UnityPath "${{ env.UNITY_PATH }}"
6663

6764
- name: Configure Sentry
68-
run: ./test/Scripts.Integration.Test/configure-sentry.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform "Android" -CheckSymbols
69-
70-
- name: Export Project - Runtime
71-
run: ./test/Scripts.Integration.Test/build-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform "Android" -CheckSymbols:$true -UnityVersion "${{ inputs.unity-version }}"
65+
run: ./test/Scripts.Integration.Test/configure-sentry.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform ${{ matrix.build_platform }} -CheckSymbols
7266

73-
# - name: Build Gradle Project - Runtime
74-
# run: ./scripts/smoke-test-android.ps1 Build -IsIntegrationTest -UnityVersion "${{ inputs.unity-version }}"
67+
- name: Export APK - Runtime Initialization
68+
run: ./test/Scripts.Integration.Test/build-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform ${{ matrix.build_platform }} -CheckSymbols:$false -UnityVersion "${{ inputs.unity-version }}"
7569

76-
- name: Upload app
70+
- name: Upload .apk
7771
uses: actions/upload-artifact@v4
7872
with:
7973
name: testapp-android-compiled-${{ inputs.unity-version }}-runtime
@@ -89,13 +83,10 @@ jobs:
8983
$content = $content -replace 'AndroidNativeInitializationType = NativeInitializationType.Runtime', 'AndroidNativeInitializationType = NativeInitializationType.BuildTime'
9084
Set-Content $optionsPath $content
9185
92-
- name: Export Project - Build Time
86+
- name: Export APK - Build-Time Initialization
9387
run: ./test/Scripts.Integration.Test/build-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform "Android" -CheckSymbols:$true -UnityVersion "${{ inputs.unity-version }}"
9488

95-
# - name: Build Gradle Project - Build Time
96-
# run: ./scripts/smoke-test-android.ps1 Build -IsIntegrationTest -UnityVersion "${{ inputs.unity-version }}"
97-
98-
- name: Upload app
89+
- name: Upload .apk
9990
uses: actions/upload-artifact@v4
10091
with:
10192
name: testapp-android-compiled-${{ inputs.unity-version }}-buildtime

.github/workflows/ios-smoke-test-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ jobs:
5555
- name: Extract project archive
5656
run: tar -xvzf test-project.tar.gz
5757

58-
# - name: Build without Sentry SDK
59-
# run: ./test/Scripts.Integration.Test/build-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform "${{ matrix.platform }}"
60-
6158
- name: Download UPM package
6259
uses: vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848
6360
with:

.github/workflows/smoke-test-create.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,3 @@ jobs:
5050
path: test-project.tar.gz
5151
# Lower retention period - we only need this to retry CI.
5252
retention-days: 14
53-
54-
# TODO: Can we build without Sentry SDK for all platforms here? The rest of the CI run waits for the SDK build to finish anyway
55-
# - name: Build without Sentry SDK
56-
# run: ./test/Scripts.Integration.Test/build-project.ps1 -UnityPath "${{ env.UNITY_PATH }}" -Platform "${{ matrix.platform }}"
57-

0 commit comments

Comments
 (0)