Skip to content

Commit bf4e605

Browse files
guri87-byteanakryiko
authored andcommitted
build.yml for Android xmake build
covering Android builds for armv7a and x86_64. Signed-off-by: ruki <waruqi@gmail.com>
1 parent b3a6590 commit bf4e605

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build-android.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: libbpf-bootstrap android ubuntu_latest
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build_libbpf_bootstrap_android:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
arch: [armeabi-v7a, x86_64]
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: recursive
20+
- uses: xmake-io/github-action-setup-xmake@v1
21+
with:
22+
xmake-version: 'latest'
23+
- name: Install Dependencies
24+
run: |
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 \
27+
sudo \
28+
&& sudo apt-get -y clean
29+
- name: Build xmake android examples/c
30+
run: |
31+
cd examples/c && xmake f -p android -a ${{ matrix.arch }} -m release -y && xmake -y

0 commit comments

Comments
 (0)