Skip to content

Commit

Permalink
[ref] Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed May 19, 2024
1 parent 72f11e6 commit cf8e042
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yamllint disable

name: Test
name: test
on: [ push, pull_request ]
env:
CARGO_TERM_COLOR: always
Expand Down
8 changes: 5 additions & 3 deletions summa-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ thiserror = { workspace = true }
tokio = { workspace = true, default-features = false, features = ["sync"] }
tracing = { workspace = true }
tracing-wasm = "0.2"
wasm-bindgen = "0.2.83"
wasm-bindgen-futures = "0.4.33"
web-sys = { version = "0.3.60", features = ["console", "DedicatedWorkerGlobalScope", "WorkerOptions", "WorkerType"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = ["console", "DedicatedWorkerGlobalScope", "WorkerOptions", "WorkerType"] }
zstd-safe = "=7.0.0"
zstd-sys = "=2.0.9"

[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O4", "--enable-bulk-memory", "--enable-mutable-globals"]
1 change: 1 addition & 0 deletions summa-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ npx protoc \
--proto_path ../summa-proto/proto \
../summa-proto/proto/*.proto


npm run build
sed -i '' 's/document.baseURI ||//g' dist/root-worker.js
sed -i '' 's/document.baseURI||//g' dist/root-worker.js

0 comments on commit cf8e042

Please sign in to comment.