-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build pyodide wheels in CI #2433
Changes from all commits
761c13a
e5193e8
62d939d
21acbd6
d62909b
0248eff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,19 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- uses: cachix/install-nix-action@v19 | ||
- uses: cachix/install-nix-action@v20 | ||
with: | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: sourmash-bio | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- run: nix run .# -- --version | ||
|
||
- run: nix-shell --command "tox -e py39" | ||
- run: nix-shell --command "tox -e py310" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. run with the same Python version for the nix package, so we don't need to download/build two Python versions |
||
|
||
mamba: | ||
runs-on: ubuntu-latest | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,19 +78,23 @@ harness = false | |
|
||
## Wasm section. Crates only used for WASM, as well as specific configurations | ||
|
||
[target.'cfg(all(target_arch = "wasm32", target_vendor="unknown"))'.dependencies.wasm-bindgen] | ||
[target.'cfg(all(target_arch = "wasm32", target_os="unknown"))'.dependencies.wasm-bindgen] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
so setting |
||
version = "0.2.84" | ||
features = ["serde-serialize"] | ||
|
||
[target.'cfg(all(target_arch = "wasm32", target_vendor="unknown"))'.dependencies.web-sys] | ||
[target.'cfg(all(target_arch = "wasm32", target_os="unknown"))'.dependencies.web-sys] | ||
version = "0.3.61" | ||
features = ["console", "File"] | ||
|
||
[target.'cfg(all(target_arch = "wasm32", target_vendor="unknown"))'.dev-dependencies] | ||
[target.'cfg(all(target_arch = "wasm32"))'.dependencies.chrono] | ||
version = "0.4.23" | ||
features = ["wasmbind"] | ||
Comment on lines
+89
to
+91
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't have a direct dependency on |
||
|
||
[target.'cfg(all(target_arch = "wasm32", target_os="unknown"))'.dev-dependencies] | ||
wasm-bindgen-test = "0.3.34" | ||
|
||
### These crates don't compile on wasm | ||
[target.'cfg(not(all(target_arch = "wasm32", target_vendor="unknown")))'.dependencies] | ||
[target.'cfg(not(all(target_arch = "wasm32", target_os="unknown")))'.dependencies] | ||
|
||
[package.metadata.maturin] | ||
name = "sourmash._lowlevel" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fast enough (3 minutes) to be in the default wheels to be built per PR.