Skip to content

Commit c66fae6

Browse files
authored
Run browser tests for Emscripten static library on Windows
1 parent d01f45c commit c66fae6

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/emscripten.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -818,19 +818,21 @@ jobs:
818818
}
819819
emmake make -j ${{ env.ncpus }} check-cppinterop
820820
cd .\unittests\CppInterOp\
821-
822821
Invoke-WebRequest -Uri "https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/1411573/chrome-win.zip" -OutFile "$PWD\chrome-win.zip" -Verbose
823822
Expand-Archive -Path "$PWD\chrome-win.zip" -DestinationPath "$PWD" -Force -Verbose
824823
Invoke-WebRequest -Uri "https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=en-US" -OutFile "firefox-setup.exe" -Verbose
825824
& "C:\Program Files\7-Zip\7z.exe" x "firefox-setup.exe"
825+
$env:PATH="$PWD\core;$PWD\chrome-win;$env:PATH"
826+
echo "PATH=$env:PATH"
827+
echo "PATH=$env:PATH" >> $env:GITHUB_ENV
826828
echo "Running CppInterOpTests in Firefox"
827-
emrun.bat --browser="$PWD\core\firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" CppInterOpTests.html
829+
emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" CppInterOpTests.html
828830
echo "Running DynamicLibraryManagerTests in Firefox"
829-
emrun.bat --browser="$PWD\core\firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" DynamicLibraryManagerTests.html
831+
emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" DynamicLibraryManagerTests.html
830832
echo "Running CppInterOpTests in Chromium"
831-
emrun.bat --browser="$PWD\chrome-win\chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" CppInterOpTests.html
833+
emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" CppInterOpTests.html
832834
echo "Running DynamicLibraryManagerTests in Chromium"
833-
emrun.bat --browser="$PWD\chrome-win\chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" DynamicLibraryManagerTests.html
835+
emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" DynamicLibraryManagerTests.html
834836
cd ..\..
835837
emmake make -j ${{ env.ncpus }} install
836838
@@ -914,6 +916,15 @@ jobs:
914916
..\
915917
}
916918
emmake make -j ${{ env.ncpus }} check-cppinterop
919+
cd .\unittests\CppInterOp\
920+
echo "Running CppInterOpTests in Firefox"
921+
emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" CppInterOpTests.html
922+
echo "Running DynamicLibraryManagerTests in Firefox"
923+
emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" DynamicLibraryManagerTests.html
924+
echo "Running CppInterOpTests in Chromium"
925+
emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" CppInterOpTests.html
926+
echo "Running DynamicLibraryManagerTests in Chromium"
927+
emrun.bat --browser="chrome.exe" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" DynamicLibraryManagerTests.html
917928
918929
- name: Build xeus-cpp
919930
if: ${{ runner.os != 'windows' }}

0 commit comments

Comments
 (0)