3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2025-02-07 18:41:15 +01:00

bindgen-cli

This commit is contained in:
David Tolnay 2022-10-17 11:25:00 -07:00
parent 5db909af00
commit afc0c230fc
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -2,12 +2,6 @@ name: cargo install
author: David Tolnay
description: Fast `cargo install` action using a GitHub-based binary cache
inputs:
crate:
description: Name of crate as published to crates.io
required: true
bin:
description: Name of binary; default = same as crate name
required: false
github_token:
description: Access token for connecting to GitHub API for artifact attestation; normally the ephemeral {{github.token}} when used in a GitHub workflow, or a personal access token {{secrets.GH_TOKEN}} in Gitea's act runner
default: ${{github.token}}
@ -16,8 +10,8 @@ runs:
steps:
- name: Check inputs
run: |
echo "crate=${{inputs.crate}}" >> $GITHUB_OUTPUT
echo "bin=${{inputs.bin || inputs.crate}}" >> $GITHUB_OUTPUT
echo "crate=bindgen-cli" >> $GITHUB_OUTPUT
echo "bin=bindgen" >> $GITHUB_OUTPUT
shell: bash
id: inputs
- name: Determine cargo bin directory