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

Build wasm package #133

Merged
merged 10 commits into from
Oct 28, 2024
Merged

Build wasm package #133

merged 10 commits into from
Oct 28, 2024

Conversation

dfrankland
Copy link
Member

@dfrankland dfrankland commented Oct 24, 2024

depends on #135

Copy link

trunk-staging-io bot commented Oct 24, 2024

406 tests were run on bb778cec. ✅ 406 Passed. View Full Report ↗︎

settings

@dfrankland dfrankland changed the base branch from main to dylan/fix-github-actions October 25, 2024 23:55
Comment on lines -40 to 42
pub fn env_validate(ci_info: env::parser::CIInfo) -> env::validator::EnvValidation {
env::validator::validate(&ci_info)
pub fn env_validate(ci_info: &env::parser::CIInfo) -> env::validator::EnvValidation {
env::validator::validate(ci_info)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Turns out that only references work as arguments for wasm-exported functions

Comment on lines +189 to +193
#[cfg(feature = "wasm")]
#[wasm_bindgen]
impl BundleRepo {
#[wasm_bindgen(constructor)]
pub fn js_new(
Copy link
Member Author

Choose a reason for hiding this comment

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

These constructors are needed to use new in JS

@dfrankland dfrankland marked this pull request as ready for review October 26, 2024 03:05
Base automatically changed from dylan/fix-github-actions to main October 28, 2024 17:49
Copy link
Collaborator

@TylerJang27 TylerJang27 left a comment

Choose a reason for hiding this comment

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

💯

Comment on lines +106 to +108
- name: Setup and build wasm
uses: ./.github/actions/setup_build_wasm

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sanity check: is the intention here to build the wasm targets and then run eslint on them in CI? Is there a specific pattern/issue that this is designed to catch (other than just making sure they build as part of a PR workflow)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm running lints that take into account types on the test code. The test code relies on types from the wasm build, so I have to build the wasm package prior to linting.

Copy link
Collaborator

Choose a reason for hiding this comment

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

🏆

@dfrankland dfrankland merged commit 5e1c21a into main Oct 28, 2024
12 checks passed
@dfrankland dfrankland deleted the dylan/wasm-build branch October 28, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants