Skip to content

Commit

Permalink
Add android build to Github Actions
Browse files Browse the repository at this point in the history
Change-Id: Ieb787a040f9eaf34d9d16996af1d63d7eae94944
Signed-off-by: Arne Schwabe <[email protected]>
  • Loading branch information
schwabe committed Feb 13, 2025
1 parent 303debf commit 26f97f3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@ jobs:
run: test ! -s uncrustify-changes.patch
working-directory: openvpn

android:
runs-on: ubuntu-24.04
name: "Android - arm64"
# Github images already setup NDK with ANDROID_NDK_ROOT pointing to the root
# of the SDK
env:
VCPKG_DEFAULT_TRIPLET: arm64-android
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/vcpkg/installed
steps:
- name: Checkout OpenVPN
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install vcpkg
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
with:
vcpkgGitCommitId: 80d54ff62d528339c626a6fbc3489a7f25956ade
- name: Install dependencies
run: ${VCPKG_ROOT}/vcpkg install openssl lz4 cmocka
- name: configure OpenVPN with cmake
run: cmake -S . -B openvpn-build -DUNSUPPORTED_BUILDS=yes -DCMAKE_SYSTEM_NAME=Android -DOPENSSL_ROOT_DIR=${VCPKG_INSTALLED_DIR}/arm64-android -DENABLE_PKCS11=false -DBUILD_TESTING=true -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DENABLE_LZO=false
- name: Build OpenVPN Android binary with cmake
run: cmake --build openvpn-build


mingw:
strategy:
fail-fast: false
Expand Down

0 comments on commit 26f97f3

Please sign in to comment.