Skip to content

Commit 1c6afef

Browse files
committed
Update CI job to not use mymindstorm/setup-emsdk
1 parent fcee060 commit 1c6afef

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -883,16 +883,22 @@ jobs:
883883
uses: actions/setup-dotnet@v3
884884
with:
885885
global-json-file: global.json
886-
887-
- name: Setup Emscripten
888-
uses: mymindstorm/setup-emsdk@v14
889-
with:
890-
version: 4.0.23
886+
887+
- name: Install emscripten (Windows)
888+
shell: pwsh
889+
run: |
890+
git clone https://github.com/emscripten-core/emsdk.git $env:USERPROFILE\emsdk
891+
cd $env:USERPROFILE\emsdk
892+
.\emsdk install 4.0.21
893+
.\emsdk activate 4.0.21
891894
892895
- name: Smoketest C# AOT build (NativeAOT-LLVM)
893896
shell: pwsh
894897
run: |
895898
$env:EXPERIMENTAL_WASM_AOT = "1"
899+
if (Test-Path "$env:USERPROFILE\emsdk\emsdk_env.ps1") {
900+
& "$env:USERPROFILE\emsdk\emsdk_env.ps1" | Out-Null
901+
}
896902
dotnet publish -c Release modules/sdk-test-cs
897903
if (-not (Test-Path "modules/sdk-test-cs/bin/Release/net8.0/wasi-wasm/publish/StdbModule.wasm")) {
898904
Write-Error "StdbModule.wasm not found"

0 commit comments

Comments
 (0)