Skip to content

Commit

Permalink
升级maos版本&修正wasm编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jun 24, 2024
1 parent 56e7125 commit 68906d1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_quickjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
build_macos:
name: macOS
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand All @@ -33,7 +33,7 @@ jobs:

build_macos_dll:
name: macOS
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand All @@ -49,7 +49,7 @@ jobs:

build_macos_arm64:
name: macOS_arm64
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand All @@ -66,7 +66,7 @@ jobs:

build_ios:
name: iOS
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand Down
31 changes: 27 additions & 4 deletions .github/workflows/build_quickjs_qjs_ns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
build_macos:
name: macOS
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand All @@ -33,7 +33,7 @@ jobs:

build_macos_dll:
name: macOS
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand All @@ -49,7 +49,7 @@ jobs:

build_macos_arm64:
name: macOS_arm64
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand All @@ -66,7 +66,7 @@ jobs:

build_ios:
name: iOS
runs-on: macos-11
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run build script
Expand Down Expand Up @@ -148,6 +148,29 @@ jobs:
with:
name: qjs_v8_bin
path: ~/qjs/**/*

build_wasm:
name: wasm
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install LibC++
run: |
sudo apt-get update
sudo apt-get install clang
sudo apt-get install build-essential
sudo apt-get install libc++-dev
sudo apt-get install libc++abi-dev
- name: Run build script
run: |
cd $GITHUB_WORKSPACE
chmod +x make_wasm.sh
./make_wasm.sh 1
cp -r $GITHUB_WORKSPACE/qjs ~/
- uses: actions/upload-artifact@v3
with:
name: qjs_v8_bin
path: ~/qjs/**/*

build_window_dll:
name: Windows
Expand Down
2 changes: 1 addition & 1 deletion make_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd ..

mkdir -p build_wasm && cd build_wasm
emcmake cmake -DQJS_NS=${QJSNS} -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ../
cd ..
emmake make
cd ..
mkdir -p ./qjs/quickjs/Lib/wasm/
cp build_wasm/libquickjs.a ./qjs/quickjs/Lib/wasm/

0 comments on commit 68906d1

Please sign in to comment.