forked from thorvg/thorvg
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (61 loc) · 1.77 KB
/
build_android.yml
File metadata and controls
70 lines (61 loc) · 1.77 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
60
61
62
63
64
65
66
67
68
69
70
name: Android
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build_x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nttld/setup-ndk@v1.3.1
id: setup-ndk
with:
submodules: true
ndk-version: r21e
local-cache: true
- name: Install Packages
run: |
sudo apt-get update
sudo pip3 install meson ninja
- name: Build
env:
NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
API: 21
run: |
sed -e "s|NDK|$NDK|g" -e "s|HOST_TAG|linux-x86_64|g" -e "s|API|$API|g" ./cross/android_x86_64.txt > /tmp/android_cross.txt
meson setup build -Dlog=true -Dloaders="all" -Dsavers="all" -Dbindings="capi" --cross-file /tmp/android_cross.txt
sudo ninja -C build install
- uses: actions/upload-artifact@v4
with:
name: result_x86_64
path: build/src/libthorvg*
build_aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nttld/setup-ndk@v1.3.1
id: setup-ndk
with:
submodules: true
ndk-version: r21e
local-cache: true
- name: Install Packages
run: |
sudo apt-get update
sudo pip3 install meson ninja
- name: Build
env:
NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
API: 21
run: |
sed -e "s|NDK|$NDK|g" -e "s|HOST_TAG|linux-x86_64|g" -e "s|API|$API|g" ./cross/android_aarch64.txt > /tmp/android_cross.txt
meson setup build -Dlog=true -Dloaders="all" -Dsavers="all" -Dbindings="capi" --cross-file /tmp/android_cross.txt
sudo ninja -C build install
- uses: actions/upload-artifact@v4
with:
name: result_aarch64
path: build/src/libthorvg*