Skip to content

Commit 3bc31a8

Browse files
committed
CI: Verify emscripten versions match
1 parent c28523e commit 3bc31a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ jobs:
170170
node-version: "20"
171171
- name: Install
172172
run: emmake npm install --build-from-source
173+
- name: Verify emscripten versions match
174+
run: |
175+
EMSCRIPTEN_VERSION_LIBVIPS=$(node -p "require('@img/sharp-libvips-dev-wasm32/versions').emscripten")
176+
EMSCRIPTEN_VERSION_SHARP=$(emcc -dumpversion)
177+
echo "libvips built with emscripten $EMSCRIPTEN_VERSION_LIBVIPS"
178+
echo "sharp built with emscripten $EMSCRIPTEN_VERSION_SHARP"
179+
test "$EMSCRIPTEN_VERSION_LIBVIPS" = "$EMSCRIPTEN_VERSION_SHARP"
173180
- name: Test
174181
run: emmake npm test
175182
- name: Test packaging

0 commit comments

Comments
 (0)