From ef6d789fcbdeefc299544f77a5082de08583838c Mon Sep 17 00:00:00 2001
From: Stefan Jandl <reg@bitfox.at>
Date: Tue, 21 Jan 2025 16:22:53 +0100
Subject: [PATCH] chore: Skipping Android on Unity 2022 in CI (#1978)

---
 .github/workflows/ci.yml | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index da7f2db11..8cc25ee14 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -446,7 +446,7 @@ jobs:
       fail-fast: false
       matrix:
         api-level: [30, 31, 34] # last updated January 2025
-        unity-version: ["2019", "2022", "6000"]
+        unity-version: ["2019", "6000"]
 
   mobile-smoke-test-compile:
     if: ${{ !startsWith(github.ref, 'refs/heads/release/') }}
@@ -507,7 +507,12 @@ jobs:
   
       - name: Android smoke test
         if: ${{ matrix.platform == 'Android' }}
-        run: ./scripts/smoke-test-android.ps1 Build -IsIntegrationTest -UnityVersion "${{ matrix.unity-version }}"
+        # Skipping Android on Unity 2022 for now
+        run: |
+          if ("${{ matrix.unity-version }}" -ne "2022")
+          {
+            ./scripts/smoke-test-android.ps1 Build -IsIntegrationTest -UnityVersion "${{ matrix.unity-version }}"
+          }
         timeout-minutes: 10
         env:
           JAVA_HOME: ${{ env.JAVA_HOME }}
@@ -530,6 +535,9 @@ jobs:
 
       - name: Upload app
         uses: actions/upload-artifact@v4
+        # Skipping Android on Unity 2022 for now
+        if: |
+          !(matrix.platform == 'Android' && matrix.unity-version == '2022') || matrix.platform == 'iOS'
         with:
           name: testapp-${{ matrix.platform }}-compiled-${{ matrix.unity-version }}
           # Collect app but ignore the files that are not required for the test.