Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Feb 16, 2025
1 parent cdd5dca commit e1b2eb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ jobs:
run: |
rustup target add ${{ matrix.target }}
cargo build --target ${{ matrix.target }} --no-default-features --features std
if: ${{ matrix.target != 'wasm32-unknown-unknown' }}
- name: cargo build --target ${{ matrix.target }} wasm32-unknown-unknown
run: |
rustup target add ${{ matrix.target }}
RUSTFLAGS='--cfg getrandom_backend="wasm_js"' cargo build --target ${{ matrix.target }} --no-default-features --features std
if: ${{ matrix.target == 'wasm32-unknown-unknown' }}

build:
name: build
Expand Down
7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ tracing = ["dep:tracing", "rarena-allocator/tracing"]

experimental = ["memchr"]

[target.'cfg(not(target_family = "wasm"))'.dependencies]
rand = { version = "0.9", default-features = false }

[target.'cfg(target_family = "wasm")'.dependencies]
[target.'cfg(target = "wasm32-unknown-unknown")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }
rand = { version = "0.9", features = ["os_rng"] }

[dependencies]
among = { version = "0.1", default-features = false, features = ["either"] }
Expand All @@ -58,6 +54,7 @@ bitflags = "2"
dbutils = { version = "0.14", default-features = false }
# dbutils = { version = "0.12", path = "../layer0/dbutils", default-features = false }

rand = { version = "0.9", default-features = false, features = ["os_rng"] }
either = { version = "1", default-features = false }
memchr = { version = "2", default-features = false, optional = true }

Expand Down

0 comments on commit e1b2eb5

Please sign in to comment.