3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-22 08:29:30 +01:00
Fast cargo install action using a GitHub-based binary cache
Find a file
David Tolnay 5579dcabc3
Merge pull request #2 from dtolnay/version
Include version number in release body
2021-11-17 11:43:39 -08:00
.github/workflows Include version number in release body 2021-11-17 11:41:27 -08:00
.gitignore Add initial attempt at composite Actions logic 2021-10-07 22:51:09 -04:00
action.yml Fail curl step on 404 2021-10-08 00:16:08 -04:00
LICENSE Add MIT license 2021-10-07 22:49:43 -04:00
README.md Add screenshot to readme 2021-10-07 23:33:56 -04:00
signing-key.asc Add public key of signing key 2021-10-07 22:50:30 -04: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 considerations

Check the .github/workflows directory of this repo for the GitHub Actions logic which compiles, signs, and publishes each binary.

This Action downloads both the binary executable and its signature. The signature is verified using gpg and the public key available in signing-key.asc. The corresponding private key is provided to this repo's build jobs as a GitHub secret.

License

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