-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interface: Add WASM build to CI and fix it
#### 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
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env zx | ||
import 'zx/globals'; | ||
import { | ||
cliArguments, | ||
workingDirectory, | ||
} from '../utils.mjs'; | ||
|
||
// Configure additional arguments here, e.g.: | ||
// ['--arg1', '--arg2', ...cliArguments()] | ||
const buildArgs = cliArguments(); | ||
const cratePath = path.join(workingDirectory, 'interface'); | ||
|
||
// Build the interface. | ||
await $`wasm-pack build --target nodejs --dev ${cratePath} --features bincode ${buildArgs}`; |