From b065e5ab9fefe5f13e4dfafaf0219438660fbf7b Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Sat, 20 May 2023 16:38:07 +0200 Subject: [PATCH] Install components and targets after installing everything from the rust-toolchain file --- action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yml b/action.yml index c101878..d91e807 100644 --- a/action.yml +++ b/action.yml @@ -108,10 +108,19 @@ runs: # Install the toolchain as specified in the file # Might break at some point: https://github.com/rust-lang/rustup/issues/1397 rustup show + if [[ -n $components ]]; then + rustup component add ${components//,/ } + fi + if [[ -n $targets ]]; then + rustup target add ${targets//,/ } + fi else 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}} fi + env: + targets: ${{inputs.target}} + components: ${{inputs.components}} shell: bash - name: Print installed versions