diff --git a/.github/workflows/native-bindings.yml b/.github/workflows/native-bindings.yml index 892ddd97c74..f70a76e4f61 100644 --- a/.github/workflows/native-bindings.yml +++ b/.github/workflows/native-bindings.yml @@ -15,8 +15,14 @@ jobs: EXT_VERSION=`grep version native/external-config.json |awk -F'"' '{print $4}'` 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 4d0dbffd350..e6ccc7b810b 100644 --- a/.github/workflows/native-compile-linux.yml +++ b/.github/workflows/native-compile-linux.yml @@ -13,7 +13,14 @@ jobs: run: | EXT_VERSION=`grep version native/external-config.json |awk -F'"' '{print $4}'` 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 90d2e92d3f8..20a94a504e7 100644 --- a/.github/workflows/native-compile-platforms.yml +++ b/.github/workflows/native-compile-platforms.yml @@ -22,8 +22,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 @@ -63,7 +70,14 @@ jobs: run: | EXT_VERSION=`grep version native/external-config.json |awk -F'"' '{print $4}'` 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 @@ -123,7 +137,14 @@ jobs: run: | EXT_VERSION=`grep version native/external-config.json |awk -F'"' '{print $4}'` 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 @@ -176,7 +197,14 @@ jobs: run: | EXT_VERSION=`grep version native/external-config.json |awk -F'"' '{print $4}'` 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 @@ -230,7 +258,14 @@ jobs: run: | EXT_VERSION=`grep version native/external-config.json |awk -F'"' '{print $4}'` 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-linter-android.yml b/.github/workflows/native-linter-android.yml index 81c9de4151f..e3fe180e09f 100644 --- a/.github/workflows/native-linter-android.yml +++ b/.github/workflows/native-linter-android.yml @@ -28,9 +28,16 @@ jobs: run: | EXT_VERSION=`grep version native/external-config.json |awk -F'"' '{print $4}'` 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 diff --git a/.github/workflows/native-simulator.yml b/.github/workflows/native-simulator.yml index 6f80b63b037..03445552852 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 c10b87c3593..77ad0886742 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