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:
108108 # Install the toolchain as specified in the file
109109 # Might break at some point: https://github.com/rust-lang/rustup/issues/1397
110110 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
111117 else
112118 rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update
113119 rustup default ${{inputs.toolchain}}
114120 fi
121+ env :
122+ targets : ${{inputs.target}}
123+ components : ${{inputs.components}}
115124 shell : bash
116125
117126 - name : Print installed versions
You can’t perform that action at this time.
0 commit comments