Skip to content

Support multiple Rust toolchain files - #20

Open
simongdavies wants to merge 1 commit into
mainfrom
simongdavies-multiple-rust-toolchains
Open

simongdavies wants to merge 1 commit into
mainfrom
simongdavies-multiple-rust-toolchains

Conversation

@simongdavies

Copy link
Copy Markdown
Member

Accept one or two toolchain directories and install the versions, components, and targets declared by their native rustup files.

Document the breaking v2 interface and explicit default selection.

Accept one or two toolchain directories and install the versions,
components, and targets declared by their native rustup files.

Document the breaking v2 interface and explicit default selection.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

A critical Windows path-handling issue in action.yml must be fixed before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Updates the GitHub Action to support one or two Rust toolchain directories, install their declared components and targets, and select an explicit default toolchain.

Changes:

  • Replaces the single toolchain input with directory-based configuration.
  • Adds validation and multi-toolchain installation.
  • Documents the v2 interface and default-selection behavior.
File Description
README.md Documents the v2 inputs and behavior.
action.yml Validates directories, installs toolchains, and selects the default.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread action.yml
run: |
fail() { echo "$*" >&2; exit 1; }
trim() { printf '%s\n' "$1" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//'; }
cd "$GITHUB_WORKSPACE"
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