mirror of
https://github.com/dtolnay/install.git
synced 2025-01-31 07:01:20 +01:00
Merge pull request #19 from dtolnay/pin
Support building specific pinned version
This commit is contained in:
commit
00df600439
1 changed files with 4 additions and 1 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -6,6 +6,9 @@ on:
|
||||||
crate:
|
crate:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
version:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
bin:
|
bin:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
@ -48,7 +51,7 @@ jobs:
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: ${{inputs.toolchain}}
|
toolchain: ${{inputs.toolchain}}
|
||||||
- run: cargo install --force ${{inputs.git && format('--path={0}', inputs.path || '.') || inputs.crate}} --bin ${{inputs.bin || inputs.crate}} ${{inputs.locked && '--locked' || ''}}
|
- run: cargo install --force ${{inputs.git && format('--path={0}', inputs.path || '.') || inputs.crate}} ${{inputs.version && format('--version={0}', inputs.version) || ''}} --bin ${{inputs.bin || inputs.crate}} ${{inputs.locked && '--locked' || ''}}
|
||||||
working-directory: ${{inputs.git && inputs.crate || '.'}}
|
working-directory: ${{inputs.git && inputs.crate || '.'}}
|
||||||
- id: which
|
- id: which
|
||||||
run: echo "which=$(which ${{inputs.bin || inputs.crate}})" >> $GITHUB_OUTPUT
|
run: echo "which=$(which ${{inputs.bin || inputs.crate}})" >> $GITHUB_OUTPUT
|
||||||
|
|
Loading…
Add table
Reference in a new issue