Skip to content

Conversation

mg-twentyone
Copy link

The toolchain installation via the rust-toolchain/rust-toolchain.toml file, using the rust_src_dir flag, does not automatically set a global default in CI/CD.
This PR adds a check that sets the default value in case it has not been correctly set after the toolchain installation.

Env details:

App + rust submodule (rust-toolchain.toml)
GitHub Actions runner
runs-on: ubuntu-24.04
container-image: quay.io/pypa/manylinux_2_28_x86_64

Fixes #74

@jonasbb
Copy link
Member

jonasbb commented Oct 4, 2025

Hi thanks for the attempt. I published a different solution for #74 in v1.15.2. I think this is the wrong way to solve it by messing with the rustup default settings. Instead the "Print installed versions" step can run in the selected sub-directory. This PR also only sets the rustup default if a rust-toolchain file exists, but does not run if a toolchain version is specified as input.

@jonasbb jonasbb closed this Oct 4, 2025
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.

Failed to find rust-toolchain.toml in mono repo when use self-hosted GitHub Actions runner
2 participants