Skip to content

Commit f822e1e

Browse files
committed
hopefully fix github action
1 parent d441284 commit f822e1e

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.github/workflows/gh-page.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Build
2828
run: |
2929
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
30-
wasm-pack build --target web --release --scope nbittich ./rdfa-wasm
30+
RUSTFLAGS='--cfg getrandom_backend="wasm_js" -Ctarget-cpu=mvp' wasm-pack build --target web --release --scope nbittich ./rdfa-wasm
3131
mkdir ghPages
3232
cp -r ./rdfa-wasm/pkg ghPages
3333
cp ./rdfa-wasm/app.js ghPages

.github/workflows/release-wasm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Build
2222
run: |
2323
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
24-
wasm-pack build --target nodejs --release --scope nbittich ./rdfa-wasm
24+
RUSTFLAGS='--cfg getrandom_backend="wasm_js" -Ctarget-cpu=mvp' wasm-pack build --target nodejs --release --scope nbittich --enable-bulk-memory ./rdfa-wasm
2525
wasm-pack pack ./rdfa-wasm/pkg
2626
2727
- name: Upload pkg

Cargo.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rdfa-wasm/Cargo.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ default = ["console_error_panic_hook","lol_alloc"]
1717
crate-type = ["cdylib", "rlib"]
1818

1919
[dependencies]
20-
getrandom = { version = "0.2.15", features = ["js"] }
20+
getrandom = { version = "0.3.3", features = ["wasm_js"] }
21+
2122
graph-rdfa-processor.workspace = true
2223
[target.'cfg(target_arch = "wasm32")'.dependencies]
2324
wasm-bindgen.workspace = true
2425
console_error_panic_hook = { workspace = true, optional = true }
2526
lol_alloc={workspace=true,optional=true}
27+
28+
[package.metadata.wasm-pack.profile.release]
29+
wasm-opt = ["-O","--enable-bulk-memory", "--enable-mutable-globals"]

0 commit comments

Comments
 (0)