-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.16 KB
/
build.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
49
50
51
52
53
name: Android CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build_android:
name: Build Android App
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 18
cache: gradle
- name: Build App
run: ./gradlew :androidApp:app:build
build_ios:
name: Build iOS App
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 18
uses: actions/setup-java@v1
with:
java-version: 18
- name: Initialize pods
run: ./gradlew shared:umbrella:podInstall
- name: Build App
run: xcodebuild -workspace iosApp/iosApp.xcworkspace -configuration Debug -scheme iosApp -sdk iphonesimulator