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

Vendor install-rust CI action from Wasmtime #1901

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

alexcrichton
Copy link
Member

@alexcrichton alexcrichton commented Nov 10, 2024

Copy the action over to this repository and edit it to suit this repository's needs such as not installing wasm targets and dealing with MSRV differently. This fixes a CI error from the latest nightly where wasm32-wasi isn't available. The Wasmtime version of the action is no longer used since the MSRV in this repository doesn't have wasm32-wasip1 and otherwise the latest nightly doesn't have wasm32-wasi, so it's easier to just edit it here.

This has the additional effect of handling Rust versions in CI slightly different. Previously the Wasmtime behavior of MSRV+2 was chosen for most runs but that was actually 1.78 as opposed to the latest stable 1.82, so the default now is "stable" and only the one builder for "msrv" explicitly reads Cargo.toml to run that.

For now this repository has more "floating" CI than the Wasmtime repository where the Rust versions are automatically updated. This will (and has) cause breakage when Rust versions update but otherwise I'm pretty sure I'll always forget to update the CI so it seems like a more reasonable balance for now. If contributions on this repository increase and a disruption of CI is significant it's probably best to fix the Rust versions used in CI

Mostly to update the auto-installation of `wasm32-wasi` to
`wasm32-wasip1` now that it's been renamed on nightly.
Update it to work for wasm-tools as well
@alexcrichton alexcrichton changed the title Update CI workflows imported from Wasmtime Vendor install-rust CI action from Wasmtime Nov 10, 2024
@alexcrichton
Copy link
Member Author

I've updated the description of the PR to accurately reflect the current status.

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Sounds reasonable

@fitzgen fitzgen added this pull request to the merge queue Nov 11, 2024
Merged via the queue into bytecodealliance:main with commit c430ce5 Nov 11, 2024
30 checks passed
@alexcrichton alexcrichton deleted the update-github-actions branch November 12, 2024 04:17
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