Skip to content

Commit

Permalink
Android build fix (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Jan 30, 2024
1 parent 3e32b0c commit 7e92cb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
id: android-armv7
os: ubuntu-latest
build_tests: false
extra_flags: "-DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=$NDK_PATH/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-25 -DANDROID_ARM_NEON=ON"
extra_flags: "-DTULIP_DONT_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=$NDK_PATH/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-25 -DANDROID_ARM_NEON=ON"
out_paths: './build/src/libTulipHook.a'

name: Build and Test ${{ matrix.config.name }}
Expand All @@ -54,7 +54,6 @@ jobs:
uses: nttld/setup-ndk@v1
with:
ndk-version: r26b
local-cache: true
if: matrix.config.id == 'android-armv7'

- name: Update ccache and Ninja
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if(TULIP_LINK_SOURCE OR PROJECT_IS_TOP_LEVEL)
add_subdirectory(src)
endif()

if(PROJECT_IS_TOP_LEVEL)
if(PROJECT_IS_TOP_LEVEL AND NOT TULIP_DONT_BUILD_TESTS)
add_subdirectory(test)
endif()

Expand Down

0 comments on commit 7e92cb9

Please sign in to comment.