From d730578dbd30f556718b8054ae8395ec5c930fd5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbarton@users.noreply.github.com> Date: Wed, 15 May 2024 16:14:26 +0100 Subject: [PATCH] Jupyter lite integration --- .github/workflows/main.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f19f2300..820b3279 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -218,7 +218,8 @@ jobs: pushd build export EMPACK_PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-build - export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host + export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host + echo "PREFIX=$PREFIX" >> $GITHUB_ENV export CMAKE_PREFIX_PATH=$PREFIX export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX @@ -229,7 +230,15 @@ jobs: -DXEUS_CPP_EMSCRIPTEN_WASM_BUILD=ON \ -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \ .. - EMCC_CFLAGS='-sERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j ${{ env.ncpus }} + EMCC_CFLAGS='-sERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j ${{ env.ncpus }} install + + - name: Jupyter Lite integration + shell: bash -l {0} + run: | + micromamba create -n xeus-lite-host jupyterlite-core + micromamba activate xeus-lite-host + python -m pip install jupyterlite-xeus + jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} - name: Setup tmate session if: ${{ failure() && runner.debug }}