3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2025-01-31 15:11:22 +01:00
cargo-install/README.md

38 lines
1 KiB
Markdown
Raw Normal View History

2021-10-07 22:51:26 -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
```yaml
name: test suite
on: [push, pull_request]
jobs:
2025-01-26 14:23:17 -08:00
doc:
name: Documentation
2021-10-07 22:51:26 -04:00
runs-on: ubuntu-latest
steps:
2025-01-26 14:23:17 -08:00
- uses: actions/checkout@v4
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs
2021-10-07 22:51:26 -04:00
```
2025-01-26 14:23:17 -08:00
<img src="https://github.com/user-attachments/assets/4bfecd07-dadc-4ce3-be98-d98461251da5">
2021-10-07 22:51:26 -04:00
2025-01-26 14:09:38 -08:00
## 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.
[GitHub artifact attestation]: https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds
2021-10-07 22:51:26 -04:00
## License
The scripts and documentation in this project are released under the [MIT
License].
[MIT License]: LICENSE