File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- arch : [armeabi-v7a, x86_64]
15
+ arch : [armeabi-v7a, arm64-v8a, x86_64]
16
16
steps :
17
17
- uses : actions/checkout@v2
18
18
with :
23
23
- name : Install Dependencies
24
24
run : |
25
25
sudo apt-get update -y && sudo apt-get install -yqq \
26
- build-essential clang llvm libelf1 libelf-dev zlib1g-dev libc++-dev libc++abi-dev \
26
+ build-essential clang llvm zlib1g-dev libc++-dev libc++abi-dev \
27
27
sudo \
28
28
&& sudo apt-get -y clean
29
29
- name : Build xmake android examples/c
30
30
run : |
31
- cd examples/c && xmake f -p android -a ${{ matrix.arch }} -m release -y && xmake -y
31
+ cd examples/c && xmake f -p android -a ${{ matrix.arch }} --require-bpftool=y -y && xmake -y
Original file line number Diff line number Diff line change 21
21
add_requires (" linux-headers" )
22
22
end
23
23
24
- add_includedirs (" ../../vmlinux" )
24
+ if is_arch (" arm64" , " arm64-v8a" ) then
25
+ add_includedirs (" ../../vmlinux/arm64" )
26
+ elseif is_arch (" arm.*" ) then
27
+ add_includedirs (" ../../vmlinux/arm" )
28
+ elseif is_arch (" riscv32" , " riscv64" ) then
29
+ add_includedirs (" ../../vmlinux/riscv" )
30
+ elseif is_arch (" loongarch" ) then
31
+ add_includedirs (" ../../vmlinux/loongarch" )
32
+ elseif is_arch (" ppc" , " powerpc" ) then
33
+ add_includedirs (" ../../vmlinux/powerpc" )
34
+ elseif is_arch (" x86_64" , " i386" ) then
35
+ add_includedirs (" ../../vmlinux/x86" )
36
+ else
37
+ add_includedirs (" ../../vmlinux" )
38
+ end
25
39
26
40
-- we can run `xmake f --require-bpftool=y` to pull bpftool from xmake-repo repository
27
41
if has_config (" require-bpftool" ) then
You can’t perform that action at this time.
0 commit comments