-
Notifications
You must be signed in to change notification settings - Fork 117
48 lines (40 loc) · 936 Bytes
/
android.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Gomobile for Android
on:
push:
branches: [ main ]
pull_request:
branches: [ main, v2 ]
jobs:
build:
name: Build library for Android with gomobile
runs-on: ubuntu-20.04
steps:
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go
- name: Install NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
link-to-sdk: true
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
for d in $ANDROID_NDK_HOME/../23*; do
ANDROID_NDK_HOME=$d
done
./build.sh android
find dist
- name: Upload Android artifacts
uses: actions/upload-artifact@v4
with:
name: Android build
path: dist/android
if-no-files-found: error