mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-13 04:56:33 +02:00
Support multiple targets
This commit is contained in:
parent
eaa8734e7e
commit
8e1a49f458
1 changed files with 3 additions and 2 deletions
|
@ -24,13 +24,14 @@ runs:
|
|||
- id: flags
|
||||
run: |
|
||||
: construct rustup command line
|
||||
echo "::set-output name=target::${{inputs.target && ' --target '}}${{inputs.target}}"
|
||||
echo "::set-output name=targets::$(for c in ${targets//,/ }; do echo -n ' --target' $c; done)"
|
||||
echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
|
||||
env:
|
||||
targets: ${{inputs.target}}
|
||||
components: ${{inputs.components}}
|
||||
shell: bash
|
||||
- name: rustup toolchain install ${{inputs.toolchain}}
|
||||
run: rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.target}}${{steps.flags.outputs.components}} --profile minimal --no-self-update
|
||||
run: rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal --no-self-update
|
||||
shell: bash
|
||||
- run: rustup default ${{inputs.toolchain}}
|
||||
shell: bash
|
||||
|
|
Loading…
Reference in a new issue