Skip to content

Commit 6248e0a

Browse files
schwabecron2
authored andcommitted
Add android build to Github Actions
Change-Id: Ieb787a040f9eaf34d9d16996af1d63d7eae94944 Signed-off-by: Arne Schwabe <[email protected]> Acked-by: Frank Lichtenheld <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg30900.html Signed-off-by: Gert Doering <[email protected]>
1 parent 75ba07d commit 6248e0a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,37 @@ jobs:
3535
run: test ! -s uncrustify-changes.patch
3636
working-directory: openvpn
3737

38+
android:
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
abi: [ arm64-v8a ]
43+
include:
44+
- abi: arm64-v8a
45+
vcpkg_triplet: arm64-android
46+
runs-on: ubuntu-24.04
47+
name: "Android - ${{ matrix.abi }}"
48+
# Github images already setup NDK with ANDROID_NDK_ROOT pointing to the root
49+
# of the SDK
50+
env:
51+
VCPKG_DEFAULT_TRIPLET: ${{ matrix.vcpkg_triplet }}
52+
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
53+
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg/installed
54+
steps:
55+
- name: Checkout OpenVPN
56+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
57+
- name: Install vcpkg
58+
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
59+
with:
60+
vcpkgGitCommitId: 33e9c99208736b713cabe4490e15235f62f893d4
61+
- name: Install dependencies
62+
run: ${VCPKG_ROOT}/vcpkg install openssl lz4 cmocka
63+
- name: configure OpenVPN with cmake
64+
run: cmake -S . -B openvpn-build -DUNSUPPORTED_BUILDS=yes -DCMAKE_SYSTEM_NAME=Android -DOPENSSL_ROOT_DIR=${VCPKG_INSTALLED_DIR}/${{ matrix.vcpkg_triplet }} -DENABLE_PKCS11=false -DBUILD_TESTING=true -DCMAKE_ANDROID_ARCH_ABI=${{ matrix.abi }} -DENABLE_LZO=false -DUSE_WERROR=no
65+
- name: Build OpenVPN Android binary with cmake
66+
run: cmake --build openvpn-build
67+
68+
3869
mingw:
3970
strategy:
4071
fail-fast: false

0 commit comments

Comments
 (0)