-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test-tooling): rust compiler container for wasm builds
Uses the stock rust container image from DockerHub Can do regular cargo builds and wasm-pack as well. This can be used to author test cases related to the API server being able to load WASM modules as Cactus plugins in the near future (this commit is part of the effort to build out the scaffolding of tests prior to getting the actual feature implemented) Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
15 changed files
with
979 additions
and
307 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
packages/cactus-test-tooling/src/main/typescript/rustc-container/rustc-build-cmd.ts
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,16 @@ | ||
export const RustcBuildCmd = { | ||
CARGO_BUILD_RELEASE: ["cargo", "build", "--release"], | ||
WASM_PACK_BUILD_BUNDLER: [ | ||
"wasm-pack", | ||
"build", | ||
"--release", | ||
"--target=bundler", | ||
], | ||
WASM_PACK_BUILD_NODEJS: [ | ||
"wasm-pack", | ||
"build", | ||
"--release", | ||
"--target=nodejs", | ||
], | ||
WASM_PACK_BUILD_WEB: ["wasm-pack", "build", "--release", "--target=web"], | ||
}; |
Oops, something went wrong.