Skip to content

Commit 4ada6c0

Browse files
authored
Update definitions (#19)
1 parent 83d7867 commit 4ada6c0

File tree

6 files changed

+815
-400
lines changed

6 files changed

+815
-400
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
pull_request:
89
jobs:
910
build:
1011
name: "Build with Emsdk:${{ matrix.emsdk }}"
@@ -40,7 +41,10 @@ jobs:
4041
git config user.email "[email protected]"
4142
git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
4243
git fetch origin
43-
git checkout "${GITHUB_REF:11}"
44+
if [ -z "$GITHUB_HEAD_REF" ]; then
45+
# If not a PR, undo detached head
46+
git checkout "${GITHUB_REF:11}"
47+
fi
4448
git submodule update --init --remote --merge
4549
cd ./binaryen
4650
git log -n1
@@ -72,11 +76,23 @@ jobs:
7276
emcc --version
7377
emconfigure cmake .. -DCMAKE_BUILD_TYPE=Release
7478
emmake make -j2 binaryen_js
75-
cp ./bin/binaryen_js.js ../../index.js
79+
cp ./bin/binaryen.js ../../index.js
7680
cd ../..
7781
- name: "Test binaryen.js"
7882
run: |
7983
node ./tests/sanity
84+
- name: "Build binaryen.wasm"
85+
run: |
86+
cd ./binaryen/build
87+
source $HOME/emsdk/emsdk_env.sh
88+
emcc --version
89+
emconfigure cmake .. -DCMAKE_BUILD_TYPE=Release
90+
emmake make -j2 binaryen_wasm
91+
cp ./bin/binaryen.js ../../wasm.js
92+
cd ../..
93+
- name: "Test binaryen.wasm"
94+
run: |
95+
node ./tests/sanity --wasm
8096
- name: "Build wasm-opt"
8197
run: |
8298
cd ./binaryen/build
@@ -91,7 +107,7 @@ jobs:
91107
- name: "Push changes to GitHub"
92108
if: github.event_name != 'pull_request' && matrix.emsdk == 'latest-fastcomp'
93109
run: |
94-
git add ./binaryen ./index.js ./bin/wasm-opt
110+
git add ./binaryen ./index.js ./wasm.js ./bin/wasm-opt
95111
npm version $VERSION --no-git-tag-version --force
96112
if [ $RELEASE ]; then
97113
echo "Committing release ("$VERSION") ..."

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ API
574574
* Module#i8x16.**min_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
575575
* Module#i8x16.**max_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
576576
* Module#i8x16.**max_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
577+
* Module#i8x16.**avgr_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
577578
* Module#i8x16.**narrow_i16x8_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
578579
* Module#i8x16.**narrow_i16x8_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
579580
>
@@ -608,6 +609,7 @@ API
608609
* Module#i16x8.**min_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
609610
* Module#i16x8.**max_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
610611
* Module#i16x8.**max_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
612+
* Module#i16x8.**avgr_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
611613
* Module#i16x8.**narrow_i32x4_s**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
612614
* Module#i16x8.**narrow_i32x4_u**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
613615
* Module#i16x8.**widen_low_i8x16_s**(value: `ExpressionRef`): `ExpressionRef`

0 commit comments

Comments
 (0)