mirror of
https://github.com/dtolnay/install.git
synced 2024-11-22 08:29:30 +01:00
Merge pull request #13 from dtolnay/toolchain
Add input for selecting a Rust toolchain
This commit is contained in:
commit
e7ebb97ed1
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -18,6 +18,10 @@ on:
|
||||||
path:
|
path:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
toolchain:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: stable
|
||||||
secrets:
|
secrets:
|
||||||
private_key:
|
private_key:
|
||||||
required: true
|
required: true
|
||||||
|
@ -37,7 +41,9 @@ jobs:
|
||||||
ref: ${{inputs.ref}}
|
ref: ${{inputs.ref}}
|
||||||
path: ${{inputs.crate}}
|
path: ${{inputs.crate}}
|
||||||
if: inputs.git
|
if: inputs.git
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@master
|
||||||
|
with:
|
||||||
|
toolchain: ${{inputs.toolchain}}
|
||||||
- run: cargo install --force ${{inputs.git && format('--path={0}', inputs.path || '.') || inputs.crate}} --bin ${{inputs.bin || inputs.crate}}
|
- run: cargo install --force ${{inputs.git && format('--path={0}', inputs.path || '.') || inputs.crate}} --bin ${{inputs.bin || inputs.crate}}
|
||||||
working-directory: ${{inputs.git && inputs.crate || '.'}}
|
working-directory: ${{inputs.git && inputs.crate || '.'}}
|
||||||
- id: which
|
- id: which
|
||||||
|
|
Loading…
Reference in a new issue