3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-22 00:19:31 +01:00

Merge pull request #13 from dtolnay/toolchain

Add input for selecting a Rust toolchain
This commit is contained in:
David Tolnay 2023-10-08 12:59:40 -04:00 committed by GitHub
commit e7ebb97ed1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,10 @@ on:
path:
required: false
type: string
toolchain:
required: false
type: string
default: stable
secrets:
private_key:
required: true
@ -37,7 +41,9 @@ jobs:
ref: ${{inputs.ref}}
path: ${{inputs.crate}}
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}}
working-directory: ${{inputs.git && inputs.crate || '.'}}
- id: which