Skip to content

Commit 2577a19

Browse files
committed
Install components and targets after installing everything from the rust-toolchain file
1 parent 03aaf6b commit 2577a19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,15 @@ 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+
rustup component add ${components//,/ }
112+
rustup target add ${targets//,/ }
111113
else
112114
rustup toolchain install ${{inputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update
113115
rustup default ${{inputs.toolchain}}
114116
fi
117+
env:
118+
targets: ${{inputs.target}}
119+
components: ${{inputs.components}}
115120
shell: bash
116121

117122
- name: Print installed versions

0 commit comments

Comments
 (0)