forked from Kolyah35/minecraft-pe-0.6.1
FIX: ndk and tools caching
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user