mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
Use swig to generate js bindings (#12410)
This commit is contained in:
@@ -16,20 +16,18 @@ jobs:
|
||||
- name: Download external libraries
|
||||
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
|
||||
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-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 }}
|
||||
- name: Generate Bindings
|
||||
run: |
|
||||
python3 -m pip install PyYAML==5.4.1 Cheetah3
|
||||
python3 ./native/tools/tojs/genbindings.py
|
||||
rm ./native/tools/tojs/userconf.ini
|
||||
cd ./native/tools/swig-config
|
||||
node genbindings.js
|
||||
git status
|
||||
- name: Update builtin-res
|
||||
env:
|
||||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||
|
||||
Reference in New Issue
Block a user