Skip to content

Setup bpftool

Actions
Install bpftool static binaries
v1.0.4
Latest
Star (0)

Tags

 (1)

Setup bpftool

This action installs bpftool in your environment for use in actions by downloading and caching a static version.

Usage

Using default inputs:

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:

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 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

Setup bpftool is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install bpftool static binaries
v1.0.4
Latest

Tags

 (1)

Setup bpftool is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.