mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-12-22 23:55:49 +02:00
Support specifying target triple
This commit is contained in:
parent
1b2f63dd38
commit
d115c8759a
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,9 @@ inputs:
|
||||||
toolchain:
|
toolchain:
|
||||||
description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
|
description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
|
||||||
required: true
|
required: true
|
||||||
|
target:
|
||||||
|
description: Target triple to install for this toolchain
|
||||||
|
required: false
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
version:
|
version:
|
||||||
|
@ -16,7 +19,7 @@ runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: rustup toolchain install ${{inputs.toolchain}}
|
- 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
|
shell: bash
|
||||||
- run: rustup default ${{inputs.toolchain}}
|
- run: rustup default ${{inputs.toolchain}}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue