Skip to content

Commit 972e576

Browse files
committed
feat: support unpacking binary from zip file
TICKET: VL-4163
1 parent ac5cec8 commit 972e576

File tree

7 files changed

+297
-59
lines changed

7 files changed

+297
-59
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ The primary goals are, in order of priority:
1717
This action only supports installing from releases where the release:
1818

1919
- is tagged with the full `{major}.{minor}.{patch}` semantic version
20-
- contains raw binary assets (archives not supported)
20+
- contains raw binary assets or zip archives (zip archives must contain exactly one binary file)
2121
- assets are labeled with the binary name and [target triple] in the format `<binary name>-<target triple>`
22+
- also supports assets labeled with underscore format: `<binary name>_<platform>_<arch>` (e.g., `fossa_linux_amd64`)
2223

2324
You can create compatible releases with [semantic-release], using a workflow like [semantic-release-action/rust].
2425

@@ -63,6 +64,16 @@ Install a binary from a release with multiple binaries available:
6364
EricCrosson/future-tools/flux-capacitor@v1
6465
```
6566

67+
Install a binary from a zip archive (the zip must contain exactly one binary file):
68+
69+
```yaml
70+
- name: Install FOSSA CLI
71+
uses: EricCrosson/install-github-release-binary@v2
72+
with:
73+
targets: |
74+
fossas/fossa-cli@v3.11.7:sha256-d6f73d3da1cc7727610dd3f2c1a6021aeb23516f74b6f031e91deb31eba34f2b
75+
```
76+
6677
## Inputs
6778

6879
| Input Parameter | Required | Description |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Install GitHub Release binary
3-
description: Install a binary from a GitHub Release
3+
description: Install a binary from a GitHub Release (supports both direct binaries and zip archives)
44
author: Eric Crosson
55
branding:
66
icon: arrow-down

dist/index.js

Lines changed: 103 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)