Skip to content

Commit 631d17f

Browse files
authored
Update emscripten.yml
1 parent 54f9631 commit 631d17f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/emscripten.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -956,13 +956,16 @@ jobs:
956956
./emsdk/emsdk activate ${{matrix.emsdk_ver}}
957957
source ./emsdk/emsdk_env.sh
958958
micromamba activate CppInterOp-wasm
959-
git clone https://github.com/compiler-research/xeus-cpp.git
959+
git clone --branch test --single-branch https://github.com/anutosh491/xeus-cpp.git
960960
cd ./xeus-cpp
961-
git reset --hard HEAD~
962961
mkdir build
963962
pushd build
964963
export CMAKE_PREFIX_PATH=${{ env.PREFIX }}
965964
export CMAKE_SYSTEM_PREFIX_PATH=${{ env.PREFIX }}
965+
966+
micromamba create -n node-env -c conda-forge nodejs=22
967+
export PATH="$MAMBA_ROOT_PREFIX/envs/node-env/bin:$PATH"
968+
966969
emcmake cmake \
967970
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
968971
-DCMAKE_PREFIX_PATH=${{ env.PREFIX }} \
@@ -972,6 +975,7 @@ jobs:
972975
-DXEUS_CPP_RESOURCE_DIR=${{ env.LLVM_BUILD_DIR }}/lib/clang/${{ matrix.clang-runtime }} \
973976
-DSYSROOT_PATH=${{ env.SYSROOT_PATH }} \
974977
..
978+
emmake make check-xeus-cpp -j ${{ env.ncpus }}
975979
emmake make -j ${{ env.ncpus }} install
976980
977981
- name: Build xeus-cpp on Windows systems
@@ -981,9 +985,8 @@ jobs:
981985
.\emsdk\emsdk activate ${{matrix.emsdk_ver}}
982986
.\emsdk\emsdk_env.ps1
983987
micromamba activate CppInterOp-wasm
984-
git clone https://github.com/compiler-research/xeus-cpp.git
988+
git clone --branch test --single-branch https://github.com/anutosh491/xeus-cpp.git
985989
cd .\xeus-cpp
986-
git reset --hard HEAD~
987990
mkdir build
988991
pushd build
989992
$env:CMAKE_PREFIX_PATH="${{ env.PREFIX }}"
@@ -1006,6 +1009,7 @@ jobs:
10061009
set -e
10071010
micromamba activate CppInterOp-wasm
10081011
cd ./xeus-cpp/build/test
1012+
node --version
10091013
node test_xeus_cpp.js
10101014
10111015
- name: Test xeus-cpp C++ Emscripten on Windows Systems
@@ -1026,6 +1030,7 @@ jobs:
10261030
}
10271031
micromamba activate CppInterOp-wasm
10281032
cd .\xeus-cpp\build\test
1033+
node --version
10291034
node test_xeus_cpp.js
10301035
echo "Running test_xeus_cpp in Firefox"
10311036
Error-OnFailure { emrun.bat --browser="firefox.exe" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html }

0 commit comments

Comments
 (0)