Skip to content

Commit 712fa86

Browse files
authored
Try to detect Windows Emscripten test failures
1 parent 55c93cd commit 712fa86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/emscripten.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ jobs:
816816
-DSYSROOT_PATH="$env:SYSROOT_PATH" `
817817
..\
818818
}
819+
try {
819820
emmake make -j ${{ env.ncpus }} check-cppinterop
820821
cd .\unittests\CppInterOp\
821822
Invoke-WebRequest -Uri "https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/1411573/chrome-win.zip" -OutFile "$PWD\chrome-win.zip" -Verbose
@@ -830,10 +831,13 @@ jobs:
830831
echo "Running DynamicLibraryManagerTests in Firefox"
831832
emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" DynamicLibraryManagerTests.html
832833
echo "Running CppInterOpTests in Chromium"
833-
emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" CppInterOpTests.html
834+
emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless" CppInterOpTests.html
834835
echo "Running DynamicLibraryManagerTests in Chromium"
835836
emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" DynamicLibraryManagerTests.html
836837
cd ..\..
838+
} catch {
839+
exit 1
840+
}
837841
emmake make -j ${{ env.ncpus }} install
838842
839843
- name: Build and Test/Install CppInterOp on Windows systems (static library)

0 commit comments

Comments
 (0)