-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,16 +80,11 @@ jobs: | |
- name: Apply emscripten patches | ||
run: | | ||
echo "Save bind.cpp ..." | ||
echo "--------------------------------- Save bind.cpp ---------------------------------" | ||
cp $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp.bak | ||
echo "Apply embind bind.cpp patches ..." | ||
echo "--------------------------------- Apply embind bind.cpp patches ---------------------------------" | ||
cp -f ./engine-HEAD/.github/workflows/emscripten-patches/embind/bind.cpp $EMSDK/upstream/emscripten/system/lib/embind/ | ||
echo "Apply patches DONE!" | ||
cat $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp | ||
echo "Restore patches ..." | ||
rm $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp | ||
mv $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp.bak $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp | ||
echo "Restore patches DONE!" | ||
echo "--------------------------------- Apply patches DONE! ---------------------------------" | ||
cat $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp | ||
- name: Install ninja | ||
|
@@ -148,6 +143,14 @@ jobs: | |
npm install | ||
node ./.github/workflows/package-size-check.js | ||
- name: Restore patches | ||
run: | | ||
echo "-------------------------- Restore patches ---------------------------------" | ||
rm $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp | ||
mv $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp.bak $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp | ||
echo "-------------------------- Restore patches DONE! ---------------------------------" | ||
cat $EMSDK/upstream/emscripten/system/lib/embind/bind.cpp | ||
- uses: LouisBrunner/[email protected] | ||
with: | ||
old: ./engine/bin/.declarations/cc.d.ts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters