Skip to content

Commit 6165b3c

Browse files
authored
Jupyter lite integration (#98)
1 parent c5855d0 commit 6165b3c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/main.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ jobs:
234234
pushd build
235235
236236
export EMPACK_PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-build
237-
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
237+
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
238+
echo "PREFIX=$PREFIX" >> $GITHUB_ENV
238239
export CMAKE_PREFIX_PATH=$PREFIX
239240
export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX
240241
@@ -245,7 +246,15 @@ jobs:
245246
-DXEUS_CPP_EMSCRIPTEN_WASM_BUILD=ON \
246247
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
247248
..
248-
EMCC_CFLAGS='-sERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j ${{ env.ncpus }}
249+
EMCC_CFLAGS='-sERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j ${{ env.ncpus }} install
250+
251+
- name: Jupyter Lite integration
252+
shell: bash -l {0}
253+
run: |
254+
micromamba create -n xeus-lite-host jupyterlite-core
255+
micromamba activate xeus-lite-host
256+
python -m pip install jupyterlite-xeus
257+
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }}
249258
250259
- name: Setup tmate session
251260
if: ${{ failure() && runner.debug }}

0 commit comments

Comments
 (0)