3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-25 17:49:31 +01:00

Support specifying target triple

This commit is contained in:
David Tolnay 2021-10-09 04:11:52 +01:00
parent 1b2f63dd38
commit d115c8759a
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -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