File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,19 @@ runs:
108
108
# Install the toolchain as specified in the file
109
109
# Might break at some point: https://github.com/rust-lang/rustup/issues/1397
110
110
rustup show
111
+ if [[ -n $components ]]; then
112
+ rustup component add ${components//,/ }
113
+ fi
114
+ if [[ -n $targets ]]; then
115
+ rustup target add ${targets//,/ }
116
+ fi
111
117
else
112
118
rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update
113
119
rustup default ${{inputs.toolchain}}
114
120
fi
121
+ env :
122
+ targets : ${{inputs.target}}
123
+ components : ${{inputs.components}}
115
124
shell : bash
116
125
117
126
- name : Print installed versions
You can’t perform that action at this time.
0 commit comments