3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2025-01-31 07:01:20 +01:00
Fast cargo install action using a GitHub-based binary cache
Find a file
David Tolnay 1ad705d14f
Merge pull request #25 from dtolnay/security
Mention artifact attestation in readme
2025-01-26 14:12:47 -08:00
.github Delete publication of gpg signatures 2025-01-26 14:00:53 -08:00
scripts Make sure force push always pushes something for each arg 2022-06-26 20:16:20 -07:00
.gitignore Add initial attempt at composite Actions logic 2021-10-07 22:51:09 -04:00
action.yml Delete gpg-based verification in favor of attestations 2025-01-26 13:46:00 -08:00
LICENSE Add MIT license 2021-10-07 22:49:43 -04:00
README.md Mention artifact attestation in readme 2025-01-26 14:11:41 -08:00

Fast cargo install action

This GitHub Action installs a Rust crate using precompiled signed binaries built on GitHub and hosted as GitHub release artifacts.

Example workflow

name: test suite
on: [push, pull_request]

jobs:
  expand:
    name: cargo expand
    runs-on: ubuntu-latest
    steps:
      - uses: dtolnay/install@master
        with:
          crate: cargo-expand
      - run: cargo expand --help

Inputs

Name Required Description
crate Name of crate as published to crates.io
bin Name of binary; default = same as crate name

Security

Binaries are cryptographically signed and verified using GitHub artifact attestation to establish the build's provenance, including the specific workflow file and workflow run that produced the artifact.

License

The scripts and documentation in this project are released under the MIT License.