From 407cac7300dd94b0d924a23f8450460f19cb5044 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 16 Sep 2024 21:27:45 +0800 Subject: [PATCH 1/5] Cancel previous runs --- .github/workflows/build.yml | 4 ++++ .github/workflows/test-xharness-android.yml | 4 ++++ .github/workflows/test-xharness-ios.yml | 4 ++++ .github/workflows/test-xharness-maccatalyst.yml | 4 ++++ .github/workflows/test-xharness-windows.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4294bbc..ffd589b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/test-xharness-android.yml b/.github/workflows/test-xharness-android.yml index 451ac26..f3ce324 100644 --- a/.github/workflows/test-xharness-android.yml +++ b/.github/workflows/test-xharness-android.yml @@ -7,6 +7,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: android: diff --git a/.github/workflows/test-xharness-ios.yml b/.github/workflows/test-xharness-ios.yml index 38d7ae7..923b19f 100644 --- a/.github/workflows/test-xharness-ios.yml +++ b/.github/workflows/test-xharness-ios.yml @@ -7,6 +7,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: ios: diff --git a/.github/workflows/test-xharness-maccatalyst.yml b/.github/workflows/test-xharness-maccatalyst.yml index 0600db2..4ae04c0 100644 --- a/.github/workflows/test-xharness-maccatalyst.yml +++ b/.github/workflows/test-xharness-maccatalyst.yml @@ -7,6 +7,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: maccatalyst: diff --git a/.github/workflows/test-xharness-windows.yml b/.github/workflows/test-xharness-windows.yml index 7385fd1..415b78a 100644 --- a/.github/workflows/test-xharness-windows.yml +++ b/.github/workflows/test-xharness-windows.yml @@ -7,6 +7,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: windows: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c77a0a..ee638fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,10 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: From 05ba2a420ad91c7fc115e615e276c2f11685b500 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 16 Sep 2024 21:52:48 +0800 Subject: [PATCH 2/5] Debug xharness failures --- .github/workflows/test-xharness-android.yml | 1 + .github/workflows/test-xharness-ios.yml | 1 + .github/workflows/test-xharness-maccatalyst.yml | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-xharness-android.yml b/.github/workflows/test-xharness-android.yml index f3ce324..b2cd3fa 100644 --- a/.github/workflows/test-xharness-android.yml +++ b/.github/workflows/test-xharness-android.yml @@ -73,6 +73,7 @@ jobs: --instrumentation devicerunners.xharness.maui.XHarnessInstrumentation \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/publish/com.companyname.devicetestingkitapp.devicetests-Signed.apk \ --output-directory artifacts \ + --verbosity debug \ && code=0 && break || code=$? && sleep 15 done exit $code diff --git a/.github/workflows/test-xharness-ios.yml b/.github/workflows/test-xharness-ios.yml index 923b19f..ea8618d 100644 --- a/.github/workflows/test-xharness-ios.yml +++ b/.github/workflows/test-xharness-ios.yml @@ -43,6 +43,7 @@ jobs: --launch-timeout=00:06:00 \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/DeviceTestingKitApp.DeviceTests.app \ --output-directory artifacts \ + --verbosity debug \ && code=0 && break || code=$? && sleep 15 done exit $code diff --git a/.github/workflows/test-xharness-maccatalyst.yml b/.github/workflows/test-xharness-maccatalyst.yml index 4ae04c0..05629e5 100644 --- a/.github/workflows/test-xharness-maccatalyst.yml +++ b/.github/workflows/test-xharness-maccatalyst.yml @@ -40,7 +40,8 @@ jobs: --timeout="00:02:00" \ --launch-timeout=00:06:00 \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/DeviceTestingKitApp.DeviceTests.app \ - --output-directory artifacts + --output-directory artifacts \ + --verbosity debug - name: Upload Artifacts uses: actions/upload-artifact@v4 if: ${{ always() }} From d6eb31fc969de8b683f38e21d0cec353590cea80 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 16 Sep 2024 22:04:31 +0800 Subject: [PATCH 3/5] debug --- .github/workflows/test-xharness-android.yml | 2 +- .github/workflows/test-xharness-ios.yml | 2 +- .github/workflows/test-xharness-maccatalyst.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-xharness-android.yml b/.github/workflows/test-xharness-android.yml index b2cd3fa..99223c3 100644 --- a/.github/workflows/test-xharness-android.yml +++ b/.github/workflows/test-xharness-android.yml @@ -73,7 +73,7 @@ jobs: --instrumentation devicerunners.xharness.maui.XHarnessInstrumentation \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/publish/com.companyname.devicetestingkitapp.devicetests-Signed.apk \ --output-directory artifacts \ - --verbosity debug \ + --verbosity Debug \ && code=0 && break || code=$? && sleep 15 done exit $code diff --git a/.github/workflows/test-xharness-ios.yml b/.github/workflows/test-xharness-ios.yml index ea8618d..32ccb0f 100644 --- a/.github/workflows/test-xharness-ios.yml +++ b/.github/workflows/test-xharness-ios.yml @@ -43,7 +43,7 @@ jobs: --launch-timeout=00:06:00 \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/DeviceTestingKitApp.DeviceTests.app \ --output-directory artifacts \ - --verbosity debug \ + --verbosity Debug \ && code=0 && break || code=$? && sleep 15 done exit $code diff --git a/.github/workflows/test-xharness-maccatalyst.yml b/.github/workflows/test-xharness-maccatalyst.yml index 05629e5..c38e0f6 100644 --- a/.github/workflows/test-xharness-maccatalyst.yml +++ b/.github/workflows/test-xharness-maccatalyst.yml @@ -41,7 +41,7 @@ jobs: --launch-timeout=00:06:00 \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/DeviceTestingKitApp.DeviceTests.app \ --output-directory artifacts \ - --verbosity debug + --verbosity Debug - name: Upload Artifacts uses: actions/upload-artifact@v4 if: ${{ always() }} From 4941a16194559c0d3c43918eedd23d29f23673e0 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 16 Sep 2024 22:40:44 +0800 Subject: [PATCH 4/5] no debug? --- .github/workflows/test-xharness-android.yml | 2 +- .github/workflows/test-xharness-ios.yml | 2 +- .github/workflows/test-xharness-maccatalyst.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-xharness-android.yml b/.github/workflows/test-xharness-android.yml index 99223c3..c4f86fe 100644 --- a/.github/workflows/test-xharness-android.yml +++ b/.github/workflows/test-xharness-android.yml @@ -73,7 +73,7 @@ jobs: --instrumentation devicerunners.xharness.maui.XHarnessInstrumentation \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/publish/com.companyname.devicetestingkitapp.devicetests-Signed.apk \ --output-directory artifacts \ - --verbosity Debug \ + --verbosity \ && code=0 && break || code=$? && sleep 15 done exit $code diff --git a/.github/workflows/test-xharness-ios.yml b/.github/workflows/test-xharness-ios.yml index 32ccb0f..e0451d1 100644 --- a/.github/workflows/test-xharness-ios.yml +++ b/.github/workflows/test-xharness-ios.yml @@ -43,7 +43,7 @@ jobs: --launch-timeout=00:06:00 \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/DeviceTestingKitApp.DeviceTests.app \ --output-directory artifacts \ - --verbosity Debug \ + --verbosity \ && code=0 && break || code=$? && sleep 15 done exit $code diff --git a/.github/workflows/test-xharness-maccatalyst.yml b/.github/workflows/test-xharness-maccatalyst.yml index c38e0f6..2ffc293 100644 --- a/.github/workflows/test-xharness-maccatalyst.yml +++ b/.github/workflows/test-xharness-maccatalyst.yml @@ -41,7 +41,7 @@ jobs: --launch-timeout=00:06:00 \ --app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/DeviceTestingKitApp.DeviceTests.app \ --output-directory artifacts \ - --verbosity Debug + --verbosity - name: Upload Artifacts uses: actions/upload-artifact@v4 if: ${{ always() }} From f3ca94063f500889542862a5cfd929d1f4e9a3d7 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 16 Sep 2024 22:51:09 +0800 Subject: [PATCH 5/5] xcode --- .github/workflows/setup-tools/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/setup-tools/action.yml b/.github/workflows/setup-tools/action.yml index 0e87266..b72f521 100644 --- a/.github/workflows/setup-tools/action.yml +++ b/.github/workflows/setup-tools/action.yml @@ -9,7 +9,7 @@ runs: uses: maxim-lobanov/setup-xcode@v1 if: runner.os == 'macOS' with: - xcode-version: latest-stable + xcode-version: 15 - name: Setup .NET uses: actions/setup-dotnet@v4 with: