From 58522575e49305695a3d26b3caa12daa835a911f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 9 Oct 2021 04:20:26 +0100 Subject: [PATCH] Support installing additional rustup components --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ef546a2..a601eac 100644 --- a/action.yml +++ b/action.yml @@ -9,6 +9,9 @@ inputs: target: description: Target triple to install for this toolchain required: false + components: + description: Comma-separated list of components to be additionally installed + required: false outputs: version: @@ -19,7 +22,7 @@ runs: using: composite steps: - name: rustup toolchain install ${{inputs.toolchain}} - run: rustup toolchain install ${{inputs.toolchain}}${{inputs.target && format(' --target {0}', inputs.target)}} --profile minimal --no-self-update + run: rustup toolchain install ${{inputs.toolchain}}${{inputs.target && format(' --target {0}', inputs.target)}}${{inputs.components && format(' --component {0}', inputs.components)}} --profile minimal --no-self-update shell: bash - run: rustup default ${{inputs.toolchain}} shell: bash