From 69d8f964e390fbd6bf296a9f9384b0ffd3db6051 Mon Sep 17 00:00:00 2001 From: unxed Date: Thu, 17 Sep 2026 11:16:41 +0000 Subject: [PATCH] ci: stop setup-android from requesting the removed `tools` package Both Android arm64 jobs now fail in "Set up Android SDK", before any goffi code runs: Warning: Failed to find package 'tools' Error: The process '/usr/local/lib/android/sdk/cmdline-tools/16.0/bin/sdkmanager' failed with exit code 1 android-actions/setup-android@v3 defaults its `packages` input to `tools platform-tools` and runs `sdkmanager ` for each entry. Google's SDK repository index (repository2-3.xml) no longer contains a `tools` package, while `platform-tools` and `cmdline-tools` are still listed, so the `tools` call exits 1. The same breakage is tracked upstream in android-actions/setup-android#537. The last green run of these jobs on main was for c8f74c6 on 2026-09-10; the workflow has not changed since, and the failure is identical on a docs-only PR. Nothing in this workflow or in scripts/check-android-arm64.sh uses the `tools` package. Pass `packages: platform-tools`, which keeps everything the step installed before except the package that no longer exists. The action still accepts licenses, exports ANDROID_HOME and puts sdkmanager on PATH, which the following NDK step relies on. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 954202a..536cb76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -186,8 +186,15 @@ jobs: go-version: ${{ matrix.go }} cache: true + # setup-android installs `tools platform-tools` by default. Google's SDK + # repository no longer lists the obsolete `tools` package, so + # `sdkmanager tools` exits 1 and fails the step + # (android-actions/setup-android#537). Nothing here uses `tools`; request + # only platform-tools. The NDK is installed explicitly below. - name: Set up Android SDK uses: android-actions/setup-android@v3 + with: + packages: platform-tools - name: Install Android NDK r29 shell: bash