diff --git a/.github/workflows/generate-android-ndk-cache.yml b/.github/workflows/generate-android-ndk-cache.yml new file mode 100644 index 00000000000..b83a53e92a8 --- /dev/null +++ b/.github/workflows/generate-android-ndk-cache.yml @@ -0,0 +1,31 @@ +name: Generate Android NDK Cache + +on: + workflow_dispatch: + inputs: + android_ndk_sdk_version: + description: 'Android NDK Version' + type: string + default: 'r21e' + required: true + +jobs: + generate_android_ndk_cache: + name: "Generate Android NDK Cache" + runs-on: ubuntu-latest + steps: + - name: Setup Android NDK + uses: nttld/setup-ndk@v1 + id: setup-ndk + with: + ndk-version: ${{ github.event.inputs.android_ndk_sdk_version }} + local-cache: true + + - name: Verify + env: + ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} + run: | + cd ${ANDROID_NDK_HOME} + cat source.properties + platform=$(uname -s | tr '[:upper:]' '[:lower:]') + ./toolchains/llvm/prebuilt/${platform}-x86_64/bin/clang -v diff --git a/.github/workflows/native-bindings.yml b/.github/workflows/native-bindings.yml index 188cefc723e..52d014120a1 100644 --- a/.github/workflows/native-bindings.yml +++ b/.github/workflows/native-bindings.yml @@ -26,6 +26,7 @@ jobs: with: ndk-version: r21e add-to-path: false + local-cache: true - name: Generate decorators run: | cd native diff --git a/.github/workflows/native-compile-platforms.yml b/.github/workflows/native-compile-platforms.yml index f4e5bcb3c78..450fe8be416 100644 --- a/.github/workflows/native-compile-platforms.yml +++ b/.github/workflows/native-compile-platforms.yml @@ -74,6 +74,7 @@ jobs: with: ndk-version: r21e add-to-path: false + local-cache: true - uses: actions/setup-java@v3 id: setup-jdk with: @@ -144,6 +145,7 @@ jobs: with: ndk-version: r21e add-to-path: false + local-cache: true - uses: actions/setup-java@v3 id: setup-jdk with: diff --git a/.github/workflows/native-linter-android.yml b/.github/workflows/native-linter-android.yml index da9c6cea328..edc7d90ae92 100644 --- a/.github/workflows/native-linter-android.yml +++ b/.github/workflows/native-linter-android.yml @@ -39,6 +39,7 @@ jobs: with: ndk-version: r21e add-to-path: false + local-cache: true - name: Get changed files uses: PatriceJiang/paths-filter@master id: listchanged