Skip to content

Fix #48 (unit-tests' dependencies of system wide libbpf) #77

Fix #48 (unit-tests' dependencies of system wide libbpf)

Fix #48 (unit-tests' dependencies of system wide libbpf) #77

Workflow file for this run

name: Run unit tests of bpftime-runtime
on:
push:
branches: "*"
pull_request:
# Why wildcard? Because we want to see test results when examing prs from non-master branches..
branches: "*"
jobs:
build-test-target-and-run:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: |
sudo apt-get install binutils-dev libboost1.74-all-dev libelf-dev zlib1g-dev libyaml-cpp-dev gcc-12 g++-12 llvm
- name: Build the target
run: |
CC=gcc-12 CXX=g++-12 make build-unit-test
- name: Run the unit test
run: |
make unit-test