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

Update CI to install wasm-pack from binary #3754

Merged
merged 1 commit into from
May 7, 2023

Conversation

paul-hansen
Copy link
Contributor

Fixes CI failure due to a library used by wasm-pack not being compatible with our MSRV

Checklist

  • Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.
    Seemed unnecessary since I doubt anyone looking at our changelog cares about changes to our CI. Just lmk if I should add something though.

Connections
Fixes this CI failure https://github.com/gfx-rs/wgpu/actions/runs/4889931906/jobs/8758745206?pr=3750#step:3:221

Description
Updates the wasm-test CI job to install wasm-pack from a precompiled binary using taiki-e/install-action.
Now that wasm-pack has released a version with support for workspace inheritance we don't need to build it ourselves.

This has the benefit of avoiding a CI failure that started today due to our MSRV no longer being compatible with wasm-pack's time dependency. This failure is what prompted this PR.

Testing
Probably easiest to just run the CI on Github.
If you want to run it locally, I used https://github.com/nektos/act with this command to mimic a github action runner using a minimal image that still contained the Rust stuff needed to get past the wasm-pack install.

act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:rust-latest -j wasm-test

Fixes CI failure due to a library used by wasm-pack not being compatible
with our MSRV
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Thanks!

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) May 7, 2023 06:00
@cwfitzgerald cwfitzgerald merged commit f173575 into gfx-rs:trunk May 7, 2023
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