Skip to content

Commit

Permalink
[ci skip] Add android ndk cache for CI (#16224)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar authored Sep 8, 2023
1 parent 2ed62f7 commit 164aa24
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/generate-android-ndk-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: <Native> 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
1 change: 1 addition & 0 deletions .github/workflows/native-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
with:
ndk-version: r21e
add-to-path: false
local-cache: true
- name: Generate decorators
run: |
cd native
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/native-compile-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/native-linter-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 164aa24

Please sign in to comment.