https://github.com/cargo-prebuilt/cargo-prebuilt-action
Downloads and installs cargo prebuilt (and other prebuilt crates) to a runner
https://github.com/cargo-prebuilt/cargo-prebuilt-action
action actions cargo-prebuilt crates github-actions rust
Last synced: about 2 months ago
JSON representation
Downloads and installs cargo prebuilt (and other prebuilt crates) to a runner
- Host: GitHub
- URL: https://github.com/cargo-prebuilt/cargo-prebuilt-action
- Owner: cargo-prebuilt
- License: mit
- Created: 2023-02-25T17:52:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-27T19:23:20.000Z (9 months ago)
- Last Synced: 2025-09-27T21:14:55.450Z (9 months ago)
- Topics: action, actions, cargo-prebuilt, crates, github-actions, rust
- Language: TypeScript
- Homepage:
- Size: 2.19 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Install cargo-prebuilt
[](https://github.com/cargo-prebuilt/cargo-prebuilt-action/actions/workflows/test.yml)
Installs cargo-prebuilt and the crates you pass to it.
See:
- [cargo-prebuilt](https://github.com/cargo-prebuilt/cargo-prebuilt)
- [cargo-prebuilt-index](https://github.com/cargo-prebuilt/index)
## Compatibility
| Action Versions | Prebuilt Versions | Note |
| --------------- | ----------------- | ------------------------ |
| 5.\*.\* | 0.7.\* | |
| 4.\*.\* | 0.7.\* | Deprecated |
| 3.\*.\* | 0.6.\* | Deprecated |
| < 3 | < 6 | Deprecated and untracked |
## Usage
```yaml
name: Install
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v5
with:
pkgs: just,rtx-cli@1.34.1
```
or
```yaml
name: Install
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v5
with:
pkgs: cargo-deny
- run: cargo prebuilt just
```
```yaml
name: Install for aarch64-apple-darwin
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v5
with:
prebuilt-version: 0.6.0
prebuilt-target: aarch64-apple-darwin
```
## Inputs
See [action.yml](action.yml) for all options.
- ```yaml
prebuilt-version: 'Version of cargo-prebuilt to use'
default: latest
```
- ```yaml
prebuilt-target: 'Target for the version of cargo-prebuilt to install'
default: current
```
- ```yaml
prebuilt-verify: 'Verify downloaded cargo prebuilt'
options:
- 'none: Do not verify'
- 'sha256: Verify using sha256 hash
(Only for making sure the download is not corrupted)'
- 'minisign: Verify using minisign (Using rsign2)'
default: 'sha256'
```
- ```yaml
pkgs: 'A CSV list of prebuilt crates needed with
optional version numbers (see cargo-prebuilt cli)'
default: ''
```
## Outputs
See [action.yml](action.yml)
- ```yaml
prebuilt-version: 'Cargo prebuilt version that was installed'
```
- ```yaml
prebuilt-target: 'Cargo prebuilt target that was installed'
```
- ```yaml
out: 'Stdout of cargo-prebuilt if it downloaded any tools'
```