Skip to content

[FEATURE] Add CI to test bpftrace #547

[FEATURE] Add CI to test bpftrace

[FEATURE] Add CI to test bpftrace #547

Workflow file for this run

name: Build and test AOT cli
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
container:
- ubuntu-2204
- fedora-39
runs-on: ubuntu-latest
container:
image: "manjusakalza/bpftime-base-image:${{matrix.container}}"
options: --privileged
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build and install everything
run: |
make release-with-llvm-jit -j
- name: Do compilation & run
run: |
export PATH=$PATH:~/.bpftime
cd .github/assets
bpftime-vm build sum.bpf.o
echo "AwAAAAEAAAACAAAAAwAAAA==" | base64 -d > test.bin
program_output=$(bpftime-vm run test.o test.bin)
echo $program_output
if echo $program_output | grep "Output: 6"; then
echo "Successful!"
exit 0
else
echo "Not found!"
exit 1
fi