You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
I’m trying to make a CI that tests x86_64-unknown-openbsd target. There is no rust-std component for this target so I thought I’d just get actions to build libstd in the first place (via e.g. -Zbuild-std).
Alas, I’m not seeing how to disable rust-std component with this workflow, so I’ll probably have to write one myself...
Is it possible to achieve what you want with the rustup directly? This Action just delegates all work to the rustup and so far I'm not sure if it can install rust-src component only, so it would be really helpful to understand if and how it could be done at all.
# install rustup (with rustc and cargo for the host)
rustup component add rust-src --toolchain nightly --target ${{ matrix.rust_target }}
# at this stage you only have 1 component – rust-src for the target. and a host toolchain.
In a current state components: input values are passed into the rustup toolchain install and not tied to target: input at all; for example, components: rustfmt, clippy will result in rustup toolchain install stable --component rustfmt --component clippy call.
As a quick workaround you can use this Action to install host toolchain first (it will also guarantee that your environment will have latest rustup installed and available from $PATH) and then use steps.run with your rustup component add rust-src … line.
Yet, this case looks important and should be supported and it should be investigated further on how this Action should be modified in order to support it (ideally without introducing breaking changes).
Let's leave this issue opened and I'll see what should be done with it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Motivation
I’m trying to make a CI that tests
x86_64-unknown-openbsd
target. There is no rust-std component for this target so I thought I’d just get actions to build libstd in the first place (via e.g.-Zbuild-std
).Alas, I’m not seeing how to disable
rust-std
component with this workflow, so I’ll probably have to write one myself...Workflow example
The text was updated successfully, but these errors were encountered: