mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-10 19:46:33 +02:00
Support installing additional rustup components
This commit is contained in:
parent
d115c8759a
commit
58522575e4
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@ inputs:
|
||||||
target:
|
target:
|
||||||
description: Target triple to install for this toolchain
|
description: Target triple to install for this toolchain
|
||||||
required: false
|
required: false
|
||||||
|
components:
|
||||||
|
description: Comma-separated list of components to be additionally installed
|
||||||
|
required: false
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
version:
|
version:
|
||||||
|
@ -19,7 +22,7 @@ runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: rustup toolchain install ${{inputs.toolchain}}
|
- name: rustup toolchain install ${{inputs.toolchain}}
|
||||||
run: rustup toolchain install ${{inputs.toolchain}}${{inputs.target && format(' --target {0}', inputs.target)}} --profile minimal --no-self-update
|
run: rustup toolchain install ${{inputs.toolchain}}${{inputs.target && format(' --target {0}', inputs.target)}}${{inputs.components && format(' --component {0}', inputs.components)}} --profile minimal --no-self-update
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: rustup default ${{inputs.toolchain}}
|
- run: rustup default ${{inputs.toolchain}}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue