Skip to content

Commit

Permalink
build.yml for Android xmake build
Browse files Browse the repository at this point in the history
covering Android builds for armv7a and x86_64.

Signed-off-by: ruki <waruqi@gmail.com>
  • Loading branch information
guri87-byte authored and anakryiko committed Nov 2, 2023
1 parent b3a6590 commit bf4e605
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: libbpf-bootstrap android ubuntu_latest

on:
push:
branches:
- master
pull_request:

jobs:
build_libbpf_bootstrap_android:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [armeabi-v7a, x86_64]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 'latest'
- name: Install Dependencies
run: |
sudo apt-get update -y && sudo apt-get install -yqq \
build-essential clang llvm libelf1 libelf-dev zlib1g-dev libc++-dev libc++abi-dev \
sudo \
&& sudo apt-get -y clean
- name: Build xmake android examples/c
run: |
cd examples/c && xmake f -p android -a ${{ matrix.arch }} -m release -y && xmake -y

0 comments on commit bf4e605

Please sign in to comment.