Skip to content

Commit

Permalink
ci: reworked windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Dec 6, 2021
1 parent 503e3de commit f4dd77a
Show file tree
Hide file tree
Showing 20 changed files with 472 additions and 425 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Android
on: [push, pull_request]

jobs:
build:
build-android:
name: NDK-C++${{matrix.std}}-${{matrix.abi}}-${{matrix.build_type}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
std: [98, 11, 14, 17, 20]
abi: [arm64-v8a, armeabi-v7a, x86_64, x86]
build_type: [Debug]
std: [98, 11, 14, 17, 20]
abi: [arm64-v8a, armeabi-v7a, x86_64, x86]
build_type: [Debug, Release]

steps:
- uses: actions/checkout@v2
Expand All @@ -24,17 +24,18 @@ jobs:
- name: Configure
shell: bash
run: |
cmake -S . -B ${{runner.workspace}}/build_CXX${{matrix.std}}-${{matrix.abi}} \
-G "Ninja Multi-Config" \
cmake -S . -B build_${{matrix.abi}} \
-DANDROID_ABI=${{matrix.abi}} \
-DANDROID_NATIVE_API_LEVEL=28 \
-DANDROID_STL=c++_shared \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \
-DANDROID_STL=c++_shared \
-DANDROID_NATIVE_API_LEVEL=28 \
-DANDROID_ABI=${{matrix.abi}} \
-G Ninja
- name: Build
run: |
cmake --build ${{runner.workspace}}/build_CXX${{matrix.std}}-${{matrix.abi}} \
cmake --build build_${{matrix.abi}} \
--config ${{matrix.build_type}}
84 changes: 0 additions & 84 deletions .github/workflows/coveralls.yml

This file was deleted.

126 changes: 0 additions & 126 deletions .github/workflows/linux-builds.yml

This file was deleted.

Loading

0 comments on commit f4dd77a

Please sign in to comment.