From 1ff91505d875953af27ab0cd3faebaf3c0b1fd2e Mon Sep 17 00:00:00 2001 From: Kolyah35 Date: Fri, 20 Mar 2026 21:57:57 +0300 Subject: [PATCH] FIX: ndk and tools caching --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46d9eea..bd9bc7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -125,12 +125,14 @@ jobs: uses: actions/checkout@v4 - name: Cache Android command-line tools + id: cache-android-tools uses: actions/cache@v3 with: path: ${{ github.workspace }}/android-sdk/cmdline-tools key: android-cmdline-tools-v36 - name: Setup Android command line tools + if: steps.cache-android-tools.outputs.cache-hit != 'true' run: | if [ ! -d "$ANDROID_SDK_ROOT/cmdline-tools/latest" ]; then mkdir -p "$ANDROID_SDK_ROOT/cmdline-tools" @@ -140,13 +142,16 @@ jobs: fi yes | "$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager" --sdk_root="$ANDROID_SDK_ROOT" "platform-tools" "platforms;android-${ANDROID_PLATFORM_API}" "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" + - name: Cache Android NDK r14b + id: cache-android-ndk uses: actions/cache@v3 with: path: ${{ github.workspace }}/android-ndk-r14b key: android-ndk-r14b - name: Install Android NDK r14b + if: steps.cache-android-ndk.outputs.cache-hit != 'true' run: | if [ ! -d "$GITHUB_WORKSPACE/android-ndk-r14b" ]; then curl -L -o ndk.zip "https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip"