Debian Codegraph @

.github/workflows/android.yml

raw
1 name: Gomobile for Android
2
3 on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main, v3 ]
8
9 permissions: {}
10
11 jobs:
12 build:
13 name: Build library for Android with gomobile
14 runs-on: ubuntu-latest
15
16 steps:
17 - name: Set up JDK 8
18 uses: actions/setup-java@v5
19 with:
20 distribution: 'zulu'
21 java-version: 8
22
23 - name: Set up Go 1.x
24 uses: actions/setup-go@v6
25 with:
26 go-version: ^1.16
27 id: go
28
29 - name: Install NDK
30 uses: nttld/setup-ndk@v1
31 with:
32 ndk-version: r23c
33 link-to-sdk: true
34
35 - name: Checkout
36 uses: actions/checkout@v6
37
38 - name: Build
39 run: |
40 for d in $ANDROID_NDK_HOME/../23*; do
41 ANDROID_NDK_HOME=$d
42 done
43 ./build.sh android
44 find dist
45
46 - name: Upload Android artifacts
47 uses: actions/upload-artifact@v7
48 with:
49 name: Android build
50 path: dist/android
51 if-no-files-found: error