https://github.com/mtardy/setup-bpftool
Set up your GitHub Actions workflow with bpftool
https://github.com/mtardy/setup-bpftool
bpf bpftool github-actions
Last synced: about 1 year ago
JSON representation
Set up your GitHub Actions workflow with bpftool
- Host: GitHub
- URL: https://github.com/mtardy/setup-bpftool
- Owner: mtardy
- License: apache-2.0
- Created: 2023-06-08T18:31:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T19:27:53.000Z (about 1 year ago)
- Last Synced: 2025-05-05T20:27:18.436Z (about 1 year ago)
- Topics: bpf, bpftool, github-actions
- Language: Makefile
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup bpftool
This action installs bpftool in your environment for use in actions by
downloading and caching a static version.
## Usage
Using default inputs:
```yaml
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install bpftool
uses: mtardy/setup-bpftool@v1
- name: Run bash script
run: |
# example script using bpftool
bpftool version
```
Note that you might want to set the `token` variable to avoid rate limiting
from the GitHub API.
Using custom inputs:
```yaml
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install bpftool
uses: mtardy/setup-bpftool@v1
with:
version: 'v7.2.0'
path: '/usr/bin'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run bash script
run: |
# example script using bpftool
bpftool version
```
## Inputs
| Name | Type | Default | Description |
| --------- | ------ | ---------------- | --------------------------------------------------------------------------------------------------- |
| `version` | String | `latest` | [bpftool](https://github.com/libbpf/bpftool/releases/) version to install. (eg. `v7.2.0`, `latest`) |
| `path` | String | `/usr/local/bin` | Destination path to install bpftool |
| `token` | String | | A GitHub token (e.g. `secrets.GITHUB_TOKEN`) to authenticate requests to GitHub API |
## License
[Apache License 2.0](LICENSE)