Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guri87-byte authored Oct 31, 2023
1 parent f67e140 commit c3009c1
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: libbpf-bootstrap build
name: libbpf-bootstrap android ubuntu

on:
push:
Expand All @@ -7,34 +7,35 @@ on:
pull_request:

jobs:
build_libbpf_bootstrap:
build_libbpf_bootstrap_android:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
llvm: [18]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '2.8.3'
- name: Build container (22.04)
if: ${{ matrix.llvm >= 14 }}
uses: docker/build-push-action@v3
with:
push: false
build-args: |
LLVM_VERSION=${{ matrix.llvm }}
VERSION=22.04
SHORTNAME=jammy
file: ./.github/docker/Dockerfile.ubuntu
tags: build_container
xmake-version: 'latest'
- name: Install Dependencies
run: |
apt-get install DEBIAN_FRONTEND="noninteractive" -y \
libelf-dev \
zlib1g-dev \
libbfd-dev \
clang \
libclang-dev \
libclang-common-dev \
libclang1 \
llvm \
llvm-dev \
llvm-runtime \
libllvm\
make pkg-config \
rustc cargo rustfmt \
sudo \
&& apt-get -y clean
- name: Build xmake android examples/c
run: |
docker run \
-v $(pwd):/libbpf-bootstrap \
build_container \
/bin/bash -c \
'cd /libbpf-bootstrap/examples/c && xmake f -p android --root && xmake --root'
cd /libbpf-bootstrap/examples/c && xmake f -p android && xmake

0 comments on commit c3009c1

Please sign in to comment.