Skip to content

Commit

Permalink
Merge pull request #196 from cargo-prebuilt/trimmed
Browse files Browse the repository at this point in the history
Use trimmed github actions packages and new arch
  • Loading branch information
harmless-tech authored Feb 26, 2024
2 parents e7c0c04 + 5395ba7 commit e314b25
Show file tree
Hide file tree
Showing 17 changed files with 2,156 additions and 30,952 deletions.
121 changes: 64 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,70 @@ 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 |
|-----------------|-------------------|--------------------------|
| 3.\*.\* | 0.6.\* | |
| < 3 | < 6 | Deprecated and untracked |

## Usage

```yaml
name: Install
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v3
with:
pkgs: just,[email protected]
```
or
```yaml
name: Install
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v3
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@v4
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v3
with:
prebuilt-version: 0.6.0
prebuilt-target: aarch64-apple-darwin
```
## Inputs
- ```yaml
Expand Down Expand Up @@ -116,60 +180,3 @@ See:
- ```yaml
out : 'Stdout of cargo-prebuilt if it downloaded any tools'
```
## Usage
```yaml
name: Install
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v3
with:
pkgs: just,[email protected]
```
or
```yaml
name: Install
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v3
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@v4
- name: Install cargo-prebuilt
uses: cargo-prebuilt/cargo-prebuilt-action@v3
with:
prebuilt-version: 0.6.0
prebuilt-target: aarch64-apple-darwin
```
1 change: 1 addition & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { describe } from 'node:test'
//import { expect } from '@jest/globals'

// TODO: Tests!!!

Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ outputs:
description: 'Cargo prebuilt version that was installed'
prebuilt-target:
description: 'Cargo prebuilt target that was installed'
prebuilt-binary:
description: 'Cargo prebuilt binary install location'
out:
description: 'Stdout of cargo-prebuilt if it downloaded any tools'

Expand Down
Loading

0 comments on commit e314b25

Please sign in to comment.