From 78dfe5b00c59e121f95f9b6df202432a82c06e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=88=98?= <40414978+PatriceJiang@users.noreply.github.com> Date: Fri, 10 Jun 2022 10:31:49 +0800 Subject: [PATCH] V3.5.2 CI Android NDK set version to 21 (#11448) * specify android ndk version (#11425) * ndk 21 (#11432) * fix unit test --- .github/workflows/native-bindings.yml | 8 ++++- .github/workflows/native-compile-linux.yml | 7 ++++ .../workflows/native-compile-platforms.yml | 35 +++++++++++++++++++ .github/workflows/native-linter-android.yml | 9 ++++- .github/workflows/native-simulator.yml | 7 ++++ .github/workflows/native-unit-test.yml | 8 ++++- 6 files changed, 71 insertions(+), 3 deletions(-) diff --git a/.github/workflows/native-bindings.yml b/.github/workflows/native-bindings.yml index 892ddd97c7..f70a76e4f6 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 4d0dbffd35..e6ccc7b810 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 90d2e92d3f..20a94a504e 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 81c9de4151..e3fe180e09 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 6f80b63b03..0344555285 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 c10b87c359..77ad088674 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