Skip to content

Commit 47a921b

Browse files
authored
Merge branch 'main' into Update-to-emsdk-3.1.73
2 parents d58843d + 8f79e18 commit 47a921b

File tree

4 files changed

+33
-35
lines changed

4 files changed

+33
-35
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
- name: ubu24
2626
os: ubuntu-24.04
2727
micromamba_shell_init: bash
28+
- name: ubu24-arm
29+
os: ubuntu-24.04-arm
30+
micromamba_shell_init: bash
2831
- name: ubu24-analyzers
2932
os: ubuntu-24.04
3033
coverage: true
@@ -33,6 +36,9 @@ jobs:
3336
- name: ubu22
3437
os: ubuntu-22.04
3538
micromamba_shell_init: bash
39+
- name: ubu22-arm
40+
os: ubuntu-22.04-arm
41+
micromamba_shell_init: bash
3642
- name: osx13-x86
3743
os: macos-13
3844
micromamba_shell_init: bash

CONTRIBUTING.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,21 @@ git clone https://github.com/<your-github-username>/xeus-cpp.git
6868
cd ./xeus-cpp
6969
```
7070

71-
You'll now want to make sure you're using emsdk version "3.1.45" and activate it. You can get this by executing the following
71+
You'll now want to make sure you are using the same emsdk as the rest of our dependencies. This can be achieved by executing
72+
the following
7273
```bash
73-
cd $HOME
74-
git clone https://github.com/emscripten-core/emsdk.git
75-
cd emsdk
76-
./emsdk install 3.1.45
77-
./emsdk activate 3.1.45
78-
source $HOME/emsdk/emsdk_env.sh
74+
micromamba create -f environment-wasm-build.yml -y
75+
micromamba activate xeus-cpp-wasm-build
7976
```
8077

8178
You are now in a position to build the xeus-cpp kernel. You build it by executing the following
8279
```bash
8380
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
8481
mkdir build
85-
pushd build
86-
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
87-
export SYSROOT_PATH=$HOME/emsdk/upstream/emscripten/cache/sysroot
82+
cd build
83+
export BUILD_TOOLS_PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-build
84+
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
85+
export SYSROOT_PATH=$BUILD_TOOLS_PREFIX/opt/emsdk/upstream/emscripten/cache/sysroot
8886

8987
emcmake cmake \
9088
-DCMAKE_BUILD_TYPE=Release \
@@ -98,7 +96,7 @@ emmake make install
9896

9997
To build Jupyter Lite with this kernel without creating a website you can execute the following
10098
```bash
101-
micromamba create -n xeus-lite-host jupyterlite-core
99+
micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge
102100
micromamba activate xeus-lite-host
103101
python -m pip install jupyterlite-xeus
104102
jupyter lite build --XeusAddon.prefix=$PREFIX

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,21 @@ git clone --depth=1 https://github.com/compiler-research/xeus-cpp.git
6969
cd ./xeus-cpp
7070
```
7171

72-
You'll now want to make sure you're using emsdk version "3.1.73" and activate it. You can get this by executing the following
72+
You'll now want to make sure you are using the same emsdk as the rest of our dependencies. This can be achieved by executing
73+
the following
7374
```bash
74-
cd $HOME
75-
git clone https://github.com/emscripten-core/emsdk.git
76-
cd emsdk
77-
./emsdk install 3.1.73
78-
./emsdk activate 3.1.73
79-
source $HOME/emsdk/emsdk_env.sh
75+
micromamba create -f environment-wasm-build.yml -y
76+
micromamba activate xeus-cpp-wasm-build
8077
```
8178

8279
You are now in a position to build the xeus-cpp kernel. You build it by executing the following
8380
```bash
8481
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
8582
mkdir build
86-
pushd build
87-
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
88-
export SYSROOT_PATH=$HOME/emsdk/upstream/emscripten/cache/sysroot
83+
cd build
84+
export BUILD_TOOLS_PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-build
85+
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
86+
export SYSROOT_PATH=$BUILD_TOOLS_PREFIX/opt/emsdk/upstream/emscripten/cache/sysroot
8987

9088
emcmake cmake \
9189
-DCMAKE_BUILD_TYPE=Release \
@@ -99,7 +97,7 @@ emmake make install
9997

10098
To build Jupyter Lite with this kernel without creating a website you can execute the following
10199
```bash
102-
micromamba create -n xeus-lite-host jupyterlite-core
100+
micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge
103101
micromamba activate xeus-lite-host
104102
python -m pip install jupyterlite-xeus
105103
jupyter lite build --XeusAddon.prefix=$PREFIX

docs/source/InstallationAndUsage.rst

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,24 @@ These instructions will assume you have cmake installed on your system. First cl
5252
git clone --depth=1 https://github.com/compiler-research/xeus-cpp.git
5353
cd ./xeus-cpp
5454
55-
56-
You'll now want to make sure you're using emsdk version "3.1.73" and activate it. You can get this by executing the following
55+
You'll now want to make sure you are using the same emsdk as the rest of our dependencies. This can be achieved by executing
56+
the following
5757

5858
.. code-block:: bash
5959
60-
cd $HOME
61-
git clone https://github.com/emscripten-core/emsdk.git
62-
cd emsdk
63-
./emsdk install 3.1.73
64-
./emsdk activate 3.1.73
65-
source $HOME/emsdk/emsdk_env.sh
66-
60+
micromamba create -f environment-wasm-build.yml -y
61+
micromamba activate xeus-cpp-wasm-build
6762
6863
You are now in a position to build the xeus-cpp kernel. You build it by executing the following
6964

7065
.. code-block:: bash
7166
7267
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
7368
mkdir build
74-
pushd build
75-
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
76-
export SYSROOT_PATH=$HOME/emsdk/upstream/emscripten/cache/sysroot
69+
cd build
70+
export BUILD_TOOLS_PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-build
71+
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
72+
export SYSROOT_PATH=$BUILD_TOOLS_PREFIX/opt/emsdk/upstream/emscripten/cache/sysroot
7773
emcmake cmake \
7874
-DCMAKE_BUILD_TYPE=Release \
7975
-DCMAKE_INSTALL_PREFIX=$PREFIX \
@@ -88,7 +84,7 @@ To build Jupyter Lite with this kernel without creating a website you can execut
8884

8985
.. code-block:: bash
9086
91-
micromamba create -n xeus-lite-host jupyterlite-core
87+
micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge
9288
micromamba activate xeus-lite-host
9389
python -m pip install jupyterlite-xeus
9490
jupyter lite build --XeusAddon.prefix=$PREFIX

0 commit comments

Comments
 (0)