Skip to content

Commit

Permalink
Merge pull request #19 from dtolnay/pin
Browse files Browse the repository at this point in the history
Support building specific pinned version
  • Loading branch information
dtolnay authored Jan 25, 2025
2 parents 397358d + b5677c2 commit 00df600
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
crate:
required: true
type: string
version:
required: false
type: string
bin:
required: false
type: string
Expand Down Expand Up @@ -48,7 +51,7 @@ jobs:
- 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}} ${{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 || '.'}}
- id: which
run: echo "which=$(which ${{inputs.bin || inputs.crate}})" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 00df600

Please sign in to comment.