Skip to content

Commit a52ab3b

Browse files
authored
Stop fetching emsdk from conda-forge (#170)
1 parent f98cca3 commit a52ab3b

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,19 +226,21 @@ jobs:
226226
- name: Setup emsdk
227227
shell: bash -l {0}
228228
run: |
229-
emsdk install ${{matrix.emsdk_ver}}
229+
cd $HOME
230+
git clone https://github.com/emscripten-core/emsdk.git
231+
cd emsdk
232+
./emsdk install ${{ matrix.emsdk_ver }}
230233
231234
- name: Build xeus-cpp
232235
shell: bash -l {0}
233236
run: |
234-
emsdk activate ${{matrix.emsdk_ver}}
235-
source $CONDA_EMSDK_DIR/emsdk_env.sh
237+
$HOME/emsdk/emsdk activate ${{matrix.emsdk_ver}}
238+
source $HOME/emsdk/emsdk_env.sh
236239
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
237240
238241
mkdir build
239242
pushd build
240243
241-
export EMPACK_PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-build
242244
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
243245
echo "PREFIX=$PREFIX" >> $GITHUB_ENV
244246
export CMAKE_PREFIX_PATH=$PREFIX

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,19 @@ micromamba activate xeus-cpp-wasm-build
7878

7979
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
8080
```bash
81-
emsdk install 3.1.45
82-
emsdk activate 3.1.45
83-
source $CONDA_EMSDK_DIR/emsdk_env.sh
81+
cd $HOME
82+
git clone https://github.com/emscripten-core/emsdk.git
83+
cd emsdk
84+
./emsdk install 3.1.45
85+
./emsdk activate 3.1.45
86+
source $HOME/emsdk/emsdk_env.sh
8487
```
8588

8689
You are now in a position to build the xeus-cpp kernel. You build it by executing the following
8790
```bash
8891
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
8992
mkdir build
9093
pushd build
91-
export EMPACK_PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-build
9294
export PREFIX=$MAMBA_ROOT_PREFIX/envs/xeus-cpp-wasm-host
9395
export CMAKE_PREFIX_PATH=$PREFIX
9496
export CMAKE_SYSTEM_PREFIX_PATH=$PREFIX

environment-wasm-build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ name: xeus-cpp-wasm-build
22
channels:
33
- conda-forge
44
dependencies:
5-
- cmake
6-
- emsdk >=3.1.11
7-
- empack >=2.0.1
5+
- cmake

0 commit comments

Comments
 (0)