mirror of
https://github.com/yuzu-mirror/oaknut.git
synced 2025-12-06 07:01:59 +01:00
oaknut: Test building for Android on CI
This commit is contained in:
parent
1d51f55129
commit
69799b43c6
37
.github/workflows/build-and-test.yml
vendored
37
.github/workflows/build-and-test.yml
vendored
|
|
@ -170,3 +170,40 @@ jobs:
|
||||||
cd build
|
cd build
|
||||||
cmake --build . --config Release
|
cmake --build . --config Release
|
||||||
./oaknut-tests -d yes "~[slow]"
|
./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=Release
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake
|
||||||
|
-DOAKNUT_USE_BUNDLED_CATCH=ON
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{github.workspace}}/build
|
||||||
|
run: cmake --build . --config Release
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue