Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
oaknut: Test building for Android on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
merryhime committed Jan 20, 2024
1 parent 31cdc09 commit 6ce5747
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,40 @@ jobs:
cd build
cmake --build . --config Release
./oaknut-tests -d yes "~[slow]"
test_on_android:
runs-on: ubuntu-latest
name: android

steps:
- name: Checkout oaknut repo
uses: actions/checkout@v3

- name: Update package repositories
run: sudo apt-get update

- name: Install dependencies
run: sudo apt-get install -q -y ninja-build

- name: Checkout Catch2 v3 repo
uses: actions/checkout@v3
with:
repository: catchorg/Catch2
ref: v3.2.0
path: externals/catch

- name: Configure CMake
run: >
cmake
-B ${{github.workspace}}/build
-H.
-GNinja
-DANDROID_ABI=arm64-v8a
-DANDROID_PLATFORM=29
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
-DOAKNUT_USE_BUNDLED_CATCH=ON
- name: Build
working-directory: ${{github.workspace}}/build-arm64
run: cmake --build . --config Release

0 comments on commit 6ce5747

Please sign in to comment.