forked from sccn/liblsl
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.46 KB
/
android.yml
File metadata and controls
59 lines (53 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Android
on:
push:
branches: ['androidci']
paths:
- '**'
- '!docs/**'
- '!.github/**'
- '.github/workflows/android.yml'
workflow_dispatch:
inputs:
cmakeextra:
description: 'Extra CMake options'
required: false
default: ''
defaults:
run:
shell: bash
jobs:
build:
name: ${{ matrix.config.arch }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- {arch: "x86"}
- {arch: "armeabi-v7a" }
- {arch: "arm64-v8a"}
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake --version
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${PWD}/install \
-DLSL_UNITTESTS=ON \
-DCPACK_PACKAGE_DIRECTORY=${PWD}/package \
-Dlslgitrevision=${{ github.sha }} \
-Dlslgitbranch=${{ github.ref }} \
-DCMAKE_SYSTEM_NAME=Android \
-DCMAKE_SYSTEM_VERSION=30 \
-DCMAKE_ANDROID_ARCH_ABI=${{ matrix.config.arch }}
${{ matrix.config.cmake_extra }}
echo ${PWD}
- name: make
run: cmake --build build --target install --config Release -j
- name: upload install dir
uses: actions/upload-artifact@master
with:
name: build-android-${{ matrix.config.arch }}
path: install