mirror of
https://github.com/dtolnay/install.git
synced 2024-11-23 00:39:30 +01:00
commit
90b2bd043a
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -9,6 +9,12 @@ on:
|
||||||
bin:
|
bin:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
git:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
branch:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
private_key:
|
private_key:
|
||||||
required: true
|
required: true
|
||||||
|
@ -22,7 +28,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- run: cargo install --force ${{inputs.crate}} --bin ${{inputs.bin || inputs.crate}}
|
- run: cargo install --force ${{inputs.crate}} --bin ${{inputs.bin || inputs.crate}} ${{inputs.git && format('--git={0}', inputs.git) || ''}} ${{inputs.branch && format('--branch={0}', inputs.branch) || ''}}
|
||||||
- id: which
|
- id: which
|
||||||
run: echo "::set-output name=which::$(which ${{inputs.bin || inputs.crate}})"
|
run: echo "::set-output name=which::$(which ${{inputs.bin || inputs.crate}})"
|
||||||
- id: version
|
- id: version
|
||||||
|
|
Loading…
Reference in a new issue