Install components and targets after installing everything from the rust-toolchain file

This commit is contained in:
Jonas Bushart 2023-05-20 16:38:07 +02:00
parent 03aaf6be76
commit b065e5ab9f

View file

@ -108,10 +108,19 @@ runs:
# Install the toolchain as specified in the file # Install the toolchain as specified in the file
# Might break at some point: https://github.com/rust-lang/rustup/issues/1397 # Might break at some point: https://github.com/rust-lang/rustup/issues/1397
rustup show rustup show
if [[ -n $components ]]; then
rustup component add ${components//,/ }
fi
if [[ -n $targets ]]; then
rustup target add ${targets//,/ }
fi
else else
rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update
rustup default ${{inputs.toolchain}} rustup default ${{inputs.toolchain}}
fi fi
env:
targets: ${{inputs.target}}
components: ${{inputs.components}}
shell: bash shell: bash
- name: Print installed versions - name: Print installed versions