specify android ndk version (#11425)

This commit is contained in:
江战
2022-06-09 09:22:14 +08:00
committed by GitHub
parent 8f9bebf427
commit ae831a4e7e
5 changed files with 70 additions and 2 deletions
@@ -18,8 +18,15 @@ jobs:
run: |
choco install --forcex86 vulkan-sdk
python -m pip install PyYAML==5.4.1 Cheetah3
- 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
@@ -61,7 +68,14 @@ 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
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
python3 -m pip install PyYAML==5.4.1 Cheetah3
python3 ./native/tools/tojs/genbindings.py
@@ -121,7 +135,14 @@ 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
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
python -m pip install PyYAML==5.4.1 Cheetah3
python ./native/tools/tojs/genbindings.py
@@ -174,7 +195,14 @@ 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
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
python -m pip install PyYAML==5.4.1 Cheetah3
python ./native/tools/tojs/genbindings.py
@@ -228,7 +256,14 @@ 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
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
python -m pip install PyYAML==5.4.1 Cheetah3
python ./native/tools/tojs/genbindings.py