Skip to content

Commit 4708158

Browse files
committed
fix: wasm build
1 parent 3ccd8e6 commit 4708158

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/emscripten.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.12'
18+
python-version: '3.13'
1919
- run: pip install pyodide-build
2020
- shell: bash
2121
run: |
@@ -29,10 +29,12 @@ jobs:
2929
# rust version is pinned for compatibility with emscripten 3.1.58
3030
run: |
3131
pip install maturin==1.12.4
32-
rustup install nightly-2025-02-01
33-
rustup default nightly-2025-02-01
32+
# rustup install nightly-2025-02-01
33+
# rustup default nightly-2025-02-01
34+
rustup install nightly
35+
rustup default nightly
3436
rustup target add wasm32-unknown-emscripten
35-
maturin build --target wasm32-unknown-emscripten -i 3.12
37+
maturin build --target wasm32-unknown-emscripten -i 3.13
3638
- name: Upload wheels
3739
uses: actions/upload-artifact@v4
3840
with:

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ bench = true
2828
crate-type = ["cdylib"]
2929

3030
[dependencies]
31-
# moc = { version = "0.19", features = ["storage"] }
32-
moc = { git = 'https://github.com/cds-astro/cds-moc-rust', rev = '147be185a91b04b75b508b2fe8c2f3a9a2d51d6e', features = ["storage"] }
33-
# moc = { git = 'https://github.com/cds-astro/cds-moc-rust', branch = 'main', features = ["storage"] }
34-
healpix = { package = "cdshealpix", version = "0.7" }
31+
moc = { version = "0.19.1", features = ["storage"] }
32+
# moc = { git = 'https://github.com/cds-astro/cds-moc-rust', rev = '147be185a91b04b75b508b2fe8c2f3a9a2d51d6e', features = ["storage"] }
33+
healpix = { package = "cdshealpix", version = "0.9.1" }
3534
# healpix = { package = "cdshealpix", git = 'https://github.com/cds-astro/cds-healpix-rust', branch = 'master' }
3635
rayon = "1.11"
3736
num_threads = "0.1"

0 commit comments

Comments
 (0)