CI: Verify emscripten versions match

This commit is contained in:
Lovell Fuller 2024-01-11 16:17:01 +00:00
parent c28523e70e
commit 3bc31a8b20

View File

@ -170,6 +170,13 @@ jobs:
node-version: "20" node-version: "20"
- name: Install - name: Install
run: emmake npm install --build-from-source run: emmake npm install --build-from-source
- name: Verify emscripten versions match
run: |
EMSCRIPTEN_VERSION_LIBVIPS=$(node -p "require('@img/sharp-libvips-dev-wasm32/versions').emscripten")
EMSCRIPTEN_VERSION_SHARP=$(emcc -dumpversion)
echo "libvips built with emscripten $EMSCRIPTEN_VERSION_LIBVIPS"
echo "sharp built with emscripten $EMSCRIPTEN_VERSION_SHARP"
test "$EMSCRIPTEN_VERSION_LIBVIPS" = "$EMSCRIPTEN_VERSION_SHARP"
- name: Test - name: Test
run: emmake npm test run: emmake npm test
- name: Test packaging - name: Test packaging