-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 845 Bytes
/
pkg.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
name: Packages
on:
workflow_dispatch:
jobs:
build-libs-android:
name: Build libs (Android)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 🐼 Setup go1.22+
uses: actions/setup-go@v5
with:
go-version: '>=1.22'
- name: Run build command
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
gomobile bind -o hello.aar -androidapi 21 -target android -tags mobile ./libmodule/src/go/mobile/
- name: Upload .aar files
uses: actions/upload-artifact@v4
with:
name: aar-files
path: '**/*.aar'
- name: Upload .jar files
uses: actions/upload-artifact@v4
with:
name: jar-files
path: '**/*.jar'