Add support for specifying which toolchain to use
This commit is contained in:
parent
58c5e42ace
commit
42a1f46405
@ -13,6 +13,10 @@ inputs:
|
|||||||
target:
|
target:
|
||||||
description: The target platform
|
description: The target platform
|
||||||
required: true
|
required: true
|
||||||
|
toolchain:
|
||||||
|
description: |
|
||||||
|
The target toolchain to use (one of "stable", "beta", or "nightly").
|
||||||
|
default: stable
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
description: |
|
description: |
|
||||||
A GitHub token, available in the secrets.GITHUB_TOKEN context variable.
|
A GitHub token, available in the secrets.GITHUB_TOKEN context variable.
|
||||||
@ -39,6 +43,7 @@ runs:
|
|||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.platform.target }}
|
targets: ${{ matrix.platform.target }}
|
||||||
|
toolchain: ${{ inputs.toolchain }}
|
||||||
if: ${{ steps.determine-cross-compile.outputs.needs-cross == 'false' }}
|
if: ${{ steps.determine-cross-compile.outputs.needs-cross == 'false' }}
|
||||||
- name: Install cross if cross-compiling (*nix)
|
- name: Install cross if cross-compiling (*nix)
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user