-
-
Notifications
You must be signed in to change notification settings - Fork 84
49 lines (41 loc) · 1.43 KB
/
test-attach.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
47
48
49
name: Build and Attach Tests Workflow
on:
workflow_dispatch:
push:
branches: "*"
pull_request:
branches: "master"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build_and_test_attach:
runs-on: "ubuntu-latest"
strategy:
matrix:
container:
- ubuntu-2204
- fedora-39
container:
image: "manjusakalza/bpftime-base-image:${{matrix.container}}"
options: --privileged -v /sys/kernel/debug/:/sys/kernel/debug:rw -v /sys/kernel/tracing:/sys/kernel/tracing:rw
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build for frida uprobe attach tests
run: |
cmake -B build
cmake --build build --config Debug --target bpftime_frida_uprobe_attach_tests -j$(nproc)
- name: Run frida uprobe attach tests
run: |
./build/attach/frida_uprobe_attach_impl/bpftime_frida_uprobe_attach_tests
- name: Remove the build
run: rm -rf build
- name: Build syscall trace uprobe attach tests
run: |
cmake -B build
cmake --build build --config Debug --target bpftime_syscall_trace_attach_tests -j$(nproc)
- name: Run syscall trace uprobe attach tests
run: |
./build/attach/syscall_trace_attach_impl/bpftime_syscall_trace_attach_tests