Skip to content

Update definitions #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
pull_request:
jobs:
build:
name: "Build with Emsdk:${{ matrix.emsdk }}"
Expand Down Expand Up @@ -40,7 +41,10 @@ jobs:
git config user.email "[email protected]"
git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git fetch origin
git checkout "${GITHUB_REF:11}"
if [ -z "$GITHUB_HEAD_REF" ]; then
# If not a PR, undo detached head
git checkout "${GITHUB_REF:11}"
fi
git submodule update --init --remote --merge
cd ./binaryen
git log -n1
Expand Down Expand Up @@ -72,11 +76,23 @@ jobs:
emcc --version
emconfigure cmake .. -DCMAKE_BUILD_TYPE=Release
emmake make -j2 binaryen_js
cp ./bin/binaryen_js.js ../../index.js
cp ./bin/binaryen.js ../../index.js
cd ../..
- name: "Test binaryen.js"
run: |
node ./tests/sanity
- name: "Build binaryen.wasm"
run: |
cd ./binaryen/build
source $HOME/emsdk/emsdk_env.sh
emcc --version
emconfigure cmake .. -DCMAKE_BUILD_TYPE=Release
emmake make -j2 binaryen_wasm
cp ./bin/binaryen.js ../../wasm.js
cd ../..
- name: "Test binaryen.wasm"
run: |
node ./tests/sanity --wasm
- name: "Build wasm-opt"
run: |
cd ./binaryen/build
Expand All @@ -91,7 +107,7 @@ jobs:
- name: "Push changes to GitHub"
if: github.event_name != 'pull_request' && matrix.emsdk == 'latest-fastcomp'
run: |
git add ./binaryen ./index.js ./bin/wasm-opt
git add ./binaryen ./index.js ./wasm.js ./bin/wasm-opt
npm version $VERSION --no-git-tag-version --force
if [ $RELEASE ]; then
echo "Committing release ("$VERSION") ..."
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ API
* Module#i8x16.**min_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i8x16.**max_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i8x16.**max_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i8x16.**avgr_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i8x16.**narrow_i16x8_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i8x16.**narrow_i16x8_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
>
Expand Down Expand Up @@ -608,6 +609,7 @@ API
* Module#i16x8.**min_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i16x8.**max_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i16x8.**max_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i16x8.**avgr_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i16x8.**narrow_i32x4_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i16x8.**narrow_i32x4_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
* Module#i16x8.**widen_low_i8x16_s**(value: `ExpressionRef`): `ExpressionRef`
Expand Down
Loading