From d115c8759a8abac369096efa0370575d6aadfe2b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 9 Oct 2021 04:11:52 +0100 Subject: [PATCH] Support specifying target triple --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a8de18c..ef546a2 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,9 @@ inputs: toolchain: description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification required: true + target: + description: Target triple to install for this toolchain + required: false outputs: version: @@ -16,7 +19,7 @@ runs: using: composite steps: - name: rustup toolchain install ${{inputs.toolchain}} - run: rustup toolchain install ${{inputs.toolchain}} --profile minimal --no-self-update + run: rustup toolchain install ${{inputs.toolchain}}${{inputs.target && format(' --target {0}', inputs.target)}} --profile minimal --no-self-update shell: bash - run: rustup default ${{inputs.toolchain}} shell: bash