Skip to content

Commit ffe024a

Browse files
committed
fix(ci): add wasm-opt to PATH for Windows Emscripten builds
Windows runners need explicit PATH setup to access wasm-opt from Emscripten's upstream/bin directory. The emsdk_env.sh script doesn't properly expose wasm-opt to subsequent build steps on Windows.
1 parent 230b7e5 commit ffe024a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build-sea.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,17 @@ jobs:
144144
cd emsdk
145145
./emsdk install latest
146146
./emsdk activate latest
147-
source ./emsdk_env.sh
147+
148+
# Source emsdk environment
149+
if [ "$RUNNER_OS" = "Windows" ]; then
150+
# On Windows with Git Bash, we need to explicitly set PATH
151+
source ./emsdk_env.sh
152+
# Also add upstream/bin to PATH for wasm-opt
153+
export PATH="$(pwd)/upstream/bin:$PATH"
154+
else
155+
source ./emsdk_env.sh
156+
fi
157+
148158
cd ..
149159
echo "::endgroup::"
150160
fi

0 commit comments

Comments
 (0)