From 8446ca1e47e36495c7094cb507206ed3a0fa640e Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Mon, 15 Jun 2026 16:31:34 +0200 Subject: [PATCH] ci(android): keep platforms;android-36 (android-37 not in the runner SDK channel) The previous CI fix bumped the pinned platform to android-37, but the runner's sdkmanager has no such package yet ("Failed to find package 'platforms;android-37'"), failing the SDK step before it could install CMake. Revert to platforms;android-36 (AGP auto-installs the compileSdk-37 platform during the build, as it did before) while keeping the cmake;3.22.1 package that fixes the libopus cross-build. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/android.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/android.yml b/.gitea/workflows/android.yml index d2f40dc..246e7e9 100644 --- a/.gitea/workflows/android.yml +++ b/.gitea/workflows/android.yml @@ -41,11 +41,12 @@ jobs: - name: Android SDK uses: android-actions/setup-android@v3 - - name: NDK r28 LTS + platform 37 + build-tools + CMake (libopus cross-build) + - name: NDK r28 LTS + platform 36 + build-tools + CMake (libopus cross-build) # cmake;3.22.1 installs cmake + ninja under $ANDROID_SDK/cmake/3.22.1/bin — the exact path # kit/build.gradle.kts prepends to PATH for cargo-ndk's audiopus_sys (libopus) CMake build. - # platform 37 matches compileSdk (AGP auto-installs it too, but pin it for a warm cache). - run: sdkmanager "platform-tools" "platforms;android-37" "build-tools;36.0.0" "ndk;28.2.13676358" "cmake;3.22.1" + # Keep platforms;android-36 (android-37 isn't in the runner's sdkmanager channel yet — + # "Failed to find package"); AGP auto-installs the compileSdk-37 platform during the build. + run: sdkmanager "platform-tools" "platforms;android-36" "build-tools;36.0.0" "ndk;28.2.13676358" "cmake;3.22.1" - name: Caches (cargo + gradle) uses: actions/cache@v4