Skip to content
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

chore(ci): Update docker build for wasm #2294

Merged
merged 2 commits into from
Dec 24, 2024
Merged

Conversation

smk762
Copy link

@smk762 smk762 commented Dec 16, 2024

I was getting errors building current dev branch in both container and local system:

error: failed to compile `wasm-pack v0.13.1`, intermediate artifacts can be found at `/tmp/cargo-installqtfHhI`

Caused by:
  package `bumpalo v3.16.0` cannot be built because it requires rustc 1.73.0 or newer, while the currently active rustc version is 1.72.0-nightly
  Try re-running cargo install with `--locked`

Referring to the GHA workflow deps, I noticed a different protoc version so updated it in the Dockerfile.

I also added rustwasm install from script step from GHA to avoid the version error above.

Additionally the WASM_BUILD doc was updated to include instructions for building via docker.

@smk762 smk762 changed the title (chore): Update docker build for wasm chore(ci): Update docker build for wasm Dec 16, 2024
@onur-ozkan onur-ozkan self-assigned this Dec 21, 2024
@onur-ozkan onur-ozkan force-pushed the container-update-protoc branch 3 times, most recently from 3571542 to c13fa4c Compare December 23, 2024 09:29
@onur-ozkan onur-ozkan force-pushed the container-update-protoc branch from c13fa4c to fff54c1 Compare December 23, 2024 09:36
Copy link
Member

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I locked the wasm-pack version for security concerns. That part should be reviewed by someone else.

Copy link
Member

@borngraced borngraced left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question.

@@ -334,7 +334,7 @@ jobs:
rustup target add wasm32-unknown-unknown

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | bash -s -- -y
run: CARGO_HOME=/root/.cargo cargo install wasm-pack --version 0.10.3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you pick this version? I see problems with compilation on windows with this specific version.
rustwasm/wasm-pack#1157

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the latest version that is compatible with our toolchain. We shouldn't need to worry about Windows errors as we don't build for Windows.

@onur-ozkan onur-ozkan merged commit ea5f307 into dev Dec 24, 2024
15 of 23 checks passed
@onur-ozkan onur-ozkan deleted the container-update-protoc branch December 24, 2024 07:25
dimxy added a commit to dimxy/komodo-defi-framework that referenced this pull request Jan 17, 2025
* dev: (35 commits)
  fix(crypto): allow non bip39 mnemonics storage (KomodoPlatform#2312)
  fix(legacy_swap): check for existing maker/taker payment before timeout (KomodoPlatform#2283)
  feat(tendermint): validators RPC (KomodoPlatform#2310)
  chore(CI): validate Cargo lock file (KomodoPlatform#2309)
  test(P2P): add test for peer time sync validation (KomodoPlatform#2304)
  fix mm2_p2p dev build (KomodoPlatform#2311)
  update Cargo.lock (KomodoPlatform#2308)
  chore(CI): unlock wasm-pack version (KomodoPlatform#2307)
  add `wasm` feature on WASM for timed-map (KomodoPlatform#2306)
  replace broken rpc link (KomodoPlatform#2305)
  chore(eth-websocket): remove some unnecessary wrappers (KomodoPlatform#2291)
  improvement(CI): switch to proper rust caching (KomodoPlatform#2303)
  fix(wasm): add test-ext-api feature to mm2_main and mm2_bin_lib tomls (KomodoPlatform#2295)
  chore(ci): Update docker build for wasm (KomodoPlatform#2294)
  chore(p2p): follow-up nits (KomodoPlatform#2302)
  feat(p2p): ensure time synchronization in the network (KomodoPlatform#2255)
  bump libp2p (KomodoPlatform#2296)
  chore(adex-cli): use "Komodo DeFi Framework" name in adex_cli  (KomodoPlatform#2290)
  chore(ctx): replace gstuff constructible with oncelock (KomodoPlatform#2267)
  don't rely on core (KomodoPlatform#2289)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants