Support multiple targets
This commit is contained in:
@@ -24,13 +24,14 @@ runs:
|
|||||||
- id: flags
|
- id: flags
|
||||||
run: |
|
run: |
|
||||||
: construct rustup command line
|
: 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)"
|
echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
|
||||||
env:
|
env:
|
||||||
|
targets: ${{inputs.target}}
|
||||||
components: ${{inputs.components}}
|
components: ${{inputs.components}}
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: rustup toolchain install ${{inputs.toolchain}}
|
- 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
|
shell: bash
|
||||||
- run: rustup default ${{inputs.toolchain}}
|
- run: rustup default ${{inputs.toolchain}}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user