Skip to content

Set up your GitHub Actions workflow with bpftool

License

Notifications You must be signed in to change notification settings

mtardy/setup-bpftool

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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