-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C.I.: Resolve Android GitHub CI failure
- Loading branch information
1 parent
899a49e
commit 697015d
Showing
3 changed files
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,39 +68,38 @@ jobs: | |
run: cmake --install build --prefix build/install --config ${{matrix.config}} | ||
|
||
android: | ||
env: | ||
CMAKE_C_COMPILER_LAUNCHER: ccache | ||
CMAKE_CXX_COMPILER_LAUNCHER: ccache | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
abi: [ armeabi-v7a ] | ||
build_tests: [ "OFF" ] | ||
stl_type: ["c++_static"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install jsonschema | ||
run: python3 -m pip install jsonschema | ||
- uses: lukka/get-cmake@latest | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: android-ccache | ||
- uses: lukka/get-cmake@latest | ||
key: android-${{ matrix.abi }}-${{ matrix.build_tests }}-${{ matrix.stl_type }} | ||
- name: Configure | ||
run: | | ||
cmake -S . -B build/ --toolchain $ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake \ | ||
-D ANDROID_PLATFORM=26 \ | ||
-D CMAKE_ANDROID_ARCH_ABI=x86_64 \ | ||
-D CMAKE_ANDROID_STL_TYPE=c++_static \ | ||
-D CMAKE_ANDROID_RTTI=YES \ | ||
-D CMAKE_ANDROID_EXCEPTIONS=YES \ | ||
-D CMAKE_ANDROID_ARCH_ABI=${{ matrix.abi }} \ | ||
-D CMAKE_ANDROID_STL_TYPE=${{ matrix.stl_type }} \ | ||
-D ANDROID_USE_LEGACY_TOOLCHAIN_FILE=NO \ | ||
-D BUILD_WERROR=ON \ | ||
-D CMAKE_BUILD_TYPE=Debug \ | ||
-D BUILD_TESTS=${{ matrix.build_tests }} \ | ||
-D UPDATE_DEPS=ON \ | ||
-D BUILD_TESTS=OFF | ||
-D BUILD_WERROR=ON | ||
env: | ||
CMAKE_C_COMPILER_LAUNCHER: ccache | ||
CMAKE_CXX_COMPILER_LAUNCHER: ccache | ||
- name: Build | ||
run: cmake --build build | ||
run: cmake --build build/ | ||
- name: Install | ||
run: cmake --install build --prefix build/install | ||
run: cmake --install build/ --prefix build/install | ||
|
||
windows-latest: | ||
runs-on: windows-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters