-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.33 KB
/
ci.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
54
55
name: "CI"
on: [push, pull_request]
jobs:
android-build-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: zulu
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Set up environment
run: |
chmod +x gradlew
- name: Assemble Debug APK
run: ./gradlew assembleDebug
- name: Run Unit Tests
run: ./gradlew testDebugUnitTest
ios-build-debug:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.3'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: zulu
- name: Build App
run: |
xcodebuild -project ./iosApp/iosApp.xcodeproj -scheme iosApp -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: iOS tests
# Disable CC due to https://github.com/google/ksp/issues/1463
run: ./gradlew iosSimulatorArm64Test --no-configuration-cache