Skip to content

Commit 876d7f0

Browse files
authored
Add Windows Emscripten xeus-cpp tests
1 parent 02f9278 commit 876d7f0

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/emscripten.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,10 +1064,25 @@ jobs:
10641064
if: ${{ runner.os == 'windows' }}
10651065
shell: powershell
10661066
run: |
1067-
$ErrorActionPreference = "Stop"
1067+
function Error-OnFailure {
1068+
param (
1069+
[Parameter(Mandatory)]
1070+
[ScriptBlock]$Command
1071+
)
1072+
1073+
& $Command
1074+
1075+
if ($LASTEXITCODE -ne 0) {
1076+
exit $LASTEXITCODE
1077+
}
1078+
}
10681079
micromamba activate CppInterOp-wasm
10691080
cd .\xeus-cpp\build\test
10701081
node test_xeus_cpp.js
1082+
echo "Running test_xeus_cpp in Firefox"
1083+
Error-OnFailure { emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html }
1084+
echo "Running test_xeus_cpp in Chromium"
1085+
Error-OnFailure { emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html }
10711086
10721087
- name: Jupyter Lite integration
10731088
if: ${{ runner.os != 'windows' }}

0 commit comments

Comments
 (0)