Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed May 6, 2024
1 parent 3519c5b commit 465f6ba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
name: "Build with Emsdk:${{ matrix.emsdk }}"
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || !contains(github.event.head_commit.message, '[ci skip]')
env:
MAKE_FLAGS: "-j2"
CMAKE_EXE_LINKER_FLAGS: "-sMAXIMUM_MEMORY=4294967296 -sSINGLE_FILE"
strategy:
matrix:
emsdk: [ "tot", "latest" ]
Expand Down Expand Up @@ -78,8 +81,8 @@ jobs:
cd ./binaryen/build
source $HOME/emsdk/emsdk_env.sh
emcc --version
emcmake cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-sMAXIMUM_MEMORY=4294967296"
emmake make -j2 binaryen_wasm
emcmake cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="$CMAKE_EXE_LINKER_FLAGS" -DENABLE_WERROR=OFF
emmake make $MAKE_FLAGS binaryen_wasm
cd ../..
npm run bundle
- name: "Test binaryen.js"
Expand All @@ -90,7 +93,7 @@ jobs:
cd ./binaryen/build
source $HOME/emsdk/emsdk_env.sh
emcc --version
emmake make -j2 wasm-opt
emmake make $MAKE_FLAGS wasm-opt
echo '#!/usr/bin/env node' | cat - ./bin/wasm-opt.js > ../../bin/wasm-opt
cd ../..
- name: "Test wasm-opt"
Expand All @@ -101,7 +104,7 @@ jobs:
cd ./binaryen/build
source $HOME/emsdk/emsdk_env.sh
emcc --version
emmake make -j2 wasm2js
emmake make $MAKE_FLAGS wasm2js
echo '#!/usr/bin/env node' | cat - ./bin/wasm2js.js > ../../bin/wasm2js
cd ../..
- name: "Test wasm2js"
Expand Down

0 comments on commit 465f6ba

Please sign in to comment.