-
-
Notifications
You must be signed in to change notification settings - Fork 75
46 lines (42 loc) · 1.1 KB
/
test-aot-cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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