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

interface: Add WASM build to CI and fix it #28

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

joncinque
Copy link
Contributor

Problem

The solana-system-interface crate is meant to work with WASM, but it's not currently tested in CI.

Summary of changes

  • Add crate-type to Cargo.toml, which is required for wasm-pack
  • Add step testing wasm-pack in CI

#### Problem

The solana-system-interface crate is meant to work with WASM, but it's
not currently tested in CI.

#### Summary of changes

* Add `crate-type` to Cargo.toml, which is required for wasm-pack
* Add step testing `wasm-pack` in CI
@joncinque joncinque requested a review from febo November 26, 2024 19:48
@joncinque
Copy link
Contributor Author

The JS job was failing because this PR declares the interface crate as a cdylib. The start validator script uses that to decide if a crate is a program.

Instead, this PR now checks to see if there's a declared program-id.

cc @lorisleiva since we literally discussed this earlier today 😅

@joncinque joncinque merged commit 96a0438 into solana-program:main Nov 27, 2024
8 checks passed
@joncinque joncinque deleted the ciwasm branch November 27, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants