Skip to content

Commit

Permalink
use boost-bcp to reduce external size
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceJiang committed Jul 19, 2023
1 parent 839a086 commit edfe3f2
Show file tree
Hide file tree
Showing 5 changed files with 832 additions and 396 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/native-compile-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- name: Minimize external
shell: bash
run: |
npm install --only=dev
node native/utils/clear-platform.js
- name: Install dependencies
run: |
sudo apt install libx11-dev -y
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/native-compile-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- name: Minimize external
shell: bash
run: |
npm install --only=dev
node native/utils/clear-platform.js
- name: Install deps
uses: humbletim/[email protected]
with:
Expand Down Expand Up @@ -69,6 +74,11 @@ jobs:
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- name: Minimize external
shell: bash
run: |
npm install --only=dev
node native/utils/clear-platform.js
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
Expand Down Expand Up @@ -139,6 +149,11 @@ jobs:
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- name: Minimize external
shell: bash
run: |
npm install --only=dev
node native/utils/clear-platform.js
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
Expand Down Expand Up @@ -212,6 +227,11 @@ jobs:
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- name: Minimize external
shell: bash
run: |
npm install --only=dev
node native/utils/clear-platform.js
- name: Compile
env:
Expand Down Expand Up @@ -261,6 +281,11 @@ jobs:
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- name: Minimize external
shell: bash
run: |
npm install --only=dev
node native/utils/clear-platform.js
- name: Compile
env:
COCOS_ENGINE_DEV: 1
Expand Down Expand Up @@ -310,6 +335,11 @@ jobs:
run: |
EXT_VERSION=`node ./.github/workflows/get-native-external-version.js`
git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos/cocos-engine-external native/external
- name: Minimize external
shell: bash
run: |
npm install --only=dev
node native/utils/clear-platform.js
- name: Compile
env:
COCOS_ENGINE_DEV: 1
Expand Down
Loading

0 comments on commit edfe3f2

Please sign in to comment.