-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add rust-toolchain.toml and pin to a working nightly #502
Add rust-toolchain.toml and pin to a working nightly #502
Conversation
df039a5
to
154d4bf
Compare
Thanks @phip1611 for the suggestion to use |
I'm in favor of this! Will approve once the comments are addressed. Thanks for working on this! |
Double-checking -- I don't see any review comments here, maybe still in draft form? |
Oh no. I ran into this issue: community/community#10369 Should be fine now |
c083e9a
to
d30b454
Compare
rust-toolchain.toml
Outdated
# don't have miri available though, so pin to a slightly older version. | ||
channel = "nightly-2022-08-26" | ||
components = [ | ||
# Needed for `-Zbuild-std`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very minor nit: probably you can add a comment here
"additive components to the default profile" or so
Feel free to merge with or without this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 added
Add a `rust-toolchain.toml` file that specifies the channel and components needed to build uefi-rs. See https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file for documentation of the `rust-toolchain.toml` format. Remove the `--toolchain` option from `xtask`, as using this file is a simpler alternative. Also remove the instructions for installing the nightly toolchain from the readme, as `rustup` will do this automatically now. The template application has been updated to add a `rust-toolchain.toml`, and `BUILDING.md` has been updated to mention it as well. The `toolchain` action previously used in the CI is unmaintained and doesn't understand `rust-toolchain.toml` (it does understand the older `rust-toolchain` file, but that doesn't allow for including required components). Since the runners come with rustup already installed, we don't actually need a complex action here anyway, so just remove those sections entirely. A few jobs need extra components installed, do that with `rustup component add`. Note that this change will also cause `xtask` itself to be built with nightly. That should generally be fine, we only had it using stable because of rust-osdev#397, and in the future we can easily temporarily pin to a non-current nightly if a bug occurs with an `xtask` dependency again. Fixes rust-osdev#498
Temporarily modify rust-toolchain.toml to pin to `nightly-2022-08-26`, as compilation is broken on current nightly due to rust-osdev#500. `nightly-2022-09-01` is the most recent nightly that avoids the bug, but it doesn't have miri (which is run by CI), so pin to a slightly older version. Also pinned the toolchain in the template app. This change should be reverted once rust-osdev#500 is fixed.
d30b454
to
7a936fd
Compare
(See the two commits for more details)