From 4961a36c63675bb99cbc8100cdf0254506888702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=9ET=CE=9ERNAL?= <137927782+particle-box@users.noreply.github.com> Date: Fri, 16 Jan 2026 22:50:56 +0530 Subject: [PATCH] fix: use sdk root for signing tools --- .github/workflows/debug.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 2eb496f3..e261ccc6 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -32,7 +32,10 @@ jobs: run: ./gradlew --configuration-cache assembleArmv8Debug - name: Determine the latest Build Tools version installed shell: bash - run: echo "BUILD_TOOL_VERSION=$(ls "$ANDROID_HOME/build-tools/" | tail -n 1)" >> $GITHUB_ENV + run: | + SDK_ROOT="${ANDROID_SDK_ROOT:-$ANDROID_HOME}" + echo "SDK_ROOT=${SDK_ROOT}" >> $GITHUB_ENV + echo "BUILD_TOOL_VERSION=$(ls "${SDK_ROOT}/build-tools/" | tail -n 1)" >> $GITHUB_ENV - name: Sign APK env: BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} @@ -103,7 +106,10 @@ jobs: run: ./gradlew --configuration-cache assembleArmv7Debug - name: Determine the latest Build Tools version installed shell: bash - run: echo "BUILD_TOOL_VERSION=$(ls \"$ANDROID_HOME/build-tools/\" | tail -n 1)" >> $GITHUB_ENV + run: | + SDK_ROOT="${ANDROID_SDK_ROOT:-$ANDROID_HOME}" + echo "SDK_ROOT=${SDK_ROOT}" >> $GITHUB_ENV + echo "BUILD_TOOL_VERSION=$(ls "${SDK_ROOT}/build-tools/" | tail -n 1)" >> $GITHUB_ENV - name: Sign APK env: BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}