From 3bc31a8b20b9d297df18231c057a9b97fa2c004b Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 11 Jan 2024 16:17:01 +0000 Subject: [PATCH] CI: Verify emscripten versions match --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df9a4f549..af70ea09f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,6 +170,13 @@ jobs: node-version: "20" - name: Install 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 run: emmake npm test - name: Test packaging