-
Notifications
You must be signed in to change notification settings - Fork 148
40 lines (37 loc) · 1.25 KB
/
ci-cross-android.yml
File metadata and controls
40 lines (37 loc) · 1.25 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
name: Android Cross Compile
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# This is what will cancel the workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ubuntu:
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[skip_build]')"
steps:
- uses: actions/checkout@v4
#- name: Cross compile ffead-cpp for android/ubuntu
# run: |
# sudo su
# cd docker
# chmod +x *.sh
# echo ${ANDROID_SDK_ROOT}
# ANDROID_ROOT=/usr/local/lib/android
# ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
# ANDROID_HOME=${ANDROID_SDK_ROOT}
# ANDROID_NDK_ROOT=${ANDROID_NDK_LATEST_HOME}
# ls -ltr ${ANDROID_NDK_ROOT}
# ls -ltr ${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin
# sudo ./cross-build-deps.sh android ${ANDROID_SDK_ROOT} ${ANDROID_NDK_ROOT} armeabi-v7a 21
# cp cross-build.sh ../
# cd ../ && chmod +x cross-build.sh
# sudo ./cross-build.sh android ${ANDROID_SDK_ROOT} ${ANDROID_NDK_ROOT} armeabi-v7a 21
- name: Cross compile ffead-cpp for android/docker
run: |
sudo su
cd docker
docker build -f DockerFile-cross-android .