diff --git a/.github/workflows/native-bindings.yml b/.github/workflows/native-bindings.yml index 2f3fdb887f..cadfefd69d 100644 --- a/.github/workflows/native-bindings.yml +++ b/.github/workflows/native-bindings.yml @@ -15,8 +15,14 @@ jobs: 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 rm -rf native/external/.git - + - uses: nttld/setup-ndk@v1 + id: setup-ndk + with: + ndk-version: r21e + add-to-path: false - name: Run genbindings.py + 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 diff --git a/.github/workflows/native-compile-linux.yml b/.github/workflows/native-compile-linux.yml index d79c976216..56c1c41d46 100644 --- a/.github/workflows/native-compile-linux.yml +++ b/.github/workflows/native-compile-linux.yml @@ -13,7 +13,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 diff --git a/.github/workflows/native-compile-platforms.yml b/.github/workflows/native-compile-platforms.yml index 3d06d148d6..1217b387b4 100644 --- a/.github/workflows/native-compile-platforms.yml +++ b/.github/workflows/native-compile-platforms.yml @@ -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 diff --git a/.github/workflows/native-simulator.yml b/.github/workflows/native-simulator.yml index 1ef0c17cae..8fee2a4028 100644 --- a/.github/workflows/native-simulator.yml +++ b/.github/workflows/native-simulator.yml @@ -29,11 +29,18 @@ jobs: - name: install vulkan-sdk run: | choco install vulkan-sdk + - uses: nttld/setup-ndk@v1 + id: setup-ndk + with: + ndk-version: r21e + add-to-path: false - name: pip install run: | python -m pip install PyYAML==5.4.1 Cheetah3 - name: generate bindings glue codes shell: bash + env: + ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} run: | python -V cd ./tools/tojs diff --git a/.github/workflows/native-unit-test.yml b/.github/workflows/native-unit-test.yml index 79da371a0a..727b06daf6 100644 --- a/.github/workflows/native-unit-test.yml +++ b/.github/workflows/native-unit-test.yml @@ -20,9 +20,15 @@ jobs: npm install npm install gulp -g node ./utils/download-deps.js - + - 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 -m pip install PyYAML==5.4.1 Cheetah3 python ./tools/tojs/genbindings.py @@ -58,8 +64,15 @@ jobs: npm install gulp -g node ./utils/download-deps.js + - 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 -m pip install PyYAML==5.4.1 Cheetah3 python ./tools/tojs/genbindings.py