-
Notifications
You must be signed in to change notification settings - Fork 6
73 lines (59 loc) · 1.91 KB
/
mobile.yaml
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
71
72
73
name: Mobile and Java build
on:
pull_request:
types: [ labeled, opened, reopened, synchronize ]
env:
GO_VERSION: "1.20"
GOFLAGS: -mod=readonly
jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'mobile') || contains(github.event.pull_request.labels.*.name, 'java')
name: Mobile and Java build
runs-on: macos-12
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
check-latest: true
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true
- name: Setup gomobile
working-directory: experimental/java
run: |
make install-gomobile
- name: Build plain java library
working-directory: experimental/java
run: |
make java
./mvnw install
- name: Build spring library
working-directory: experimental/spring
run: |
./mvnw install -Pdarwin
- name: Build android framework
working-directory: experimental/mobile
run: |
make android
- name: Build android example
working-directory: experimental/mobile/examples/android-nasp
run: |
./gradlew build
- name: Build ios framework
working-directory: experimental/mobile
run: |
make ios
- name: Build ios example
working-directory: experimental/mobile/examples/ios-nasp
run: |
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO