Skip to content

Commit

Permalink
ci: added ndk builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Sep 10, 2023
1 parent 0ba0726 commit 1173c9f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Android

on: [push, pull_request]

jobs:
build:
name: NDK-${{matrix.abi}}-API-${{matrix.api_level}}-${{matrix.build_type}}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: true
matrix:
abi:
- arm64-v8a
- armeabi-v7a
- x86
- x86_64
api_level: [28]
build_type: [Release, Debug]

steps:
- uses: actions/checkout@v3

- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0

- name: Configure
run: |
cmake -S . -B build_${{matrix.abi}} \
-DCMAKE_ANDROID_API=${{matrix.api_level}} \
-DCMAKE_ANDROID_ARCH_ABI=${{matrix.abi}} \
-DCMAKE_ANDROID_STL_TYPE=c++_shared \
-DCMAKE_SYSTEM_NAME=Android \
-G Ninja
- name: Build
run: |
cmake --build build_${{matrix.abi}} \
--config ${{matrix.build_type}}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CMake support for SuiteSparse

![Android](https://github.com/sergiud/suitesparse/actions/workflows/android.yml/badge.svg)
![Linux](https://github.com/sergiud/suitesparse/actions/workflows/linux.yml/badge.svg)
![macOS](https://github.com/sergiud/suitesparse/actions/workflows/macos.yml/badge.svg)
![Windows](https://github.com/sergiud/suitesparse/actions/workflows/windows.yml/badge.svg)
Expand Down

0 comments on commit 1173c9f

Please sign in to comment.