diff --git a/.github/workflows/native-linter-android.yml b/.github/workflows/native-linter-android.yml index 11fd6c6326..40789bf2c4 100644 --- a/.github/workflows/native-linter-android.yml +++ b/.github/workflows/native-linter-android.yml @@ -28,9 +28,16 @@ jobs: run: | EXT_VERSION=`node ./.github/workflows/get-native-external-version.js` git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos-creator/engine-native-external native/external - + - uses: nttld/setup-ndk@v1 + id: setup-ndk + with: + ndk-version: r21e + add-to-path: false - name: Generate bindings shell: bash + env: + ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} + run: | python -V cd ./native/tools/tojs