Skip to content

Commit ec2706a

Browse files
author
Julian LALU
committed
Try to fix Windows WASM
1 parent be0d12e commit ec2706a

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/windows_wasm.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,24 @@ jobs:
1414
run: |
1515
C:/msys64/usr/bin/pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain --noconfirm
1616
$env:Path += ";C:\msys64\ucrt64\bin"
17-
- name: Install Emscripten SDK
18-
uses: mymindstorm/setup-emsdk@v14
19-
with:
20-
emsdk-version: latest
21-
emsdk-dir: ${{ github.workspace }}/emsdk
17+
- name: Clone emsdk
18+
run: |
19+
git clone https://github.com/emscripten-core/emsdk.git
20+
cd emsdk
21+
git pull
22+
- name: Install Emscripten
23+
run: |
24+
cd emsdk
25+
./emsdk install latest
26+
./emsdk activate latest
27+
shell: bash
28+
- name: Set Emscripten env
29+
run: |
30+
cd emsdk
31+
./emsdk construct_env
32+
echo "EMSDK=$PWD" >> $GITHUB_ENV
33+
echo "$PWD/upstream/emscripten" >> $GITHUB_PATH
34+
shell: bash
2235
- name: Generate
2336
run: emcmake.bat cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -Btarget
2437
- name: Build

0 commit comments

Comments
 (0)