[FEATURE] Add CI to test bpftrace #547
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |