forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 928 Bytes
/
lin-auto-ndk.yml
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
name: lin auto ndk
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Android NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r26c
- name: Checkout HDF5
uses: actions/checkout@v4
- name: Test HDF5
run: |
echo $NDK
export NDK=/usr/local/lib/android/sdk/ndk/26.2.11394342/
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
export TARGET=aarch64-linux-android
export AR=$TOOLCHAIN/bin/llvm-ar
export API=34
export CC=$TOOLCHAIN/bin/$TARGET$API-clang
export AS=$CC
export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++
export LD=$TOOLCHAIN/bin/ld
export RANLIB=$TOOLCHAIN/bin/llvm-ranlib
export STRIP=$TOOLCHAIN/bin/llvm-strip
./autogen.sh
./configure --host $TARGET
make