-
Notifications
You must be signed in to change notification settings - Fork 69
44 lines (41 loc) · 1.04 KB
/
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
name: Build Android
on:
push:
jobs:
build:
runs-on: ubuntu-latest-8core
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r24
local-cache: true
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.1'
- name: Set up gomobile
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build AAR
run: gomobile bind -target=android -androidapi 26 -o imessage.aar ./imessage/ffi
# - name: Publish to GitHub Packages
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: ./android/gradlew -p android :library:publish
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: aar
path: ffi.aar