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]>
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]>
  • Loading branch information
schwabe authored and cron2 committed Feb 14, 2025
1 parent 75ba07d commit 6248e0a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,37 @@ jobs:
run: test ! -s uncrustify-changes.patch
working-directory: openvpn

android:
strategy:
fail-fast: false
matrix:
abi: [ arm64-v8a ]
include:
- abi: arm64-v8a
vcpkg_triplet: arm64-android
runs-on: ubuntu-24.04
name: "Android - ${{ matrix.abi }}"
# Github images already setup NDK with ANDROID_NDK_ROOT pointing to the root
# of the SDK
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.vcpkg_triplet }}
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: 33e9c99208736b713cabe4490e15235f62f893d4
- 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}/${{ matrix.vcpkg_triplet }} -DENABLE_PKCS11=false -DBUILD_TESTING=true -DCMAKE_ANDROID_ARCH_ABI=${{ matrix.abi }} -DENABLE_LZO=false -DUSE_WERROR=no
- name: Build OpenVPN Android binary with cmake
run: cmake --build openvpn-build


mingw:
strategy:
fail-fast: false
Expand Down

0 comments on commit 6248e0a

Please sign in to comment.