Skip to content

[FEATURE] Add CI to test bpftrace #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
try another path to clone and install bpftrace
  • Loading branch information
tdaudi committed Apr 19, 2024
commit 8d6bf328c69e42a95a354fe44fac72baf2ec417e
6 changes: 4 additions & 2 deletions .github/workflows/test-bpftrace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,18 @@ jobs:
name: "Clone the latest version"
with:
submodules: 'recursive'
- name: "Create bpftrace dirs"
run: mkdir /bpftrace /bpftrace_git
- uses: actions/checkout@v2
name: "Pull bpftrace"
with:
repository: "bpftrace/bpftrace"
submodules: 'recursive'
path: '$GITHUB_WORKSPACE/bpftrace'
path: '/bpftrace_git'
- name: Build and install bpftrace
if: ${{!matrix.enable_jit}}
run: |
cd $GITHUB_WORKSPACE/bpftrace
cd /bpftrace_git
cmake -B /bpftrace -DBUILD_TESTING=OFF
make -C /bpftrace -j$(nproc)
cd -
Expand Down