-
Notifications
You must be signed in to change notification settings - Fork 189
50 lines (45 loc) · 1.54 KB
/
iOSBuild.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
name: iOS Build
on:
push:
branches: [ "main" ]
pull_request:
concurrency:
group: ios-build-${{ github.ref }}
cancel-in-progress: true
jobs:
build-ios:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -s '/Applications/Xcode_14.0.app'
- name: Validate Gradle Wrapper
uses: gradle/[email protected]
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build KMM Module
run: ./gradlew appioscombined:assembleAppioscombinedDebugXCFramework
- name: Zip xcframework artifact
run: |
ditto -c -k -v app-ios-combined/build/XCFrameworks/debug/appioscombined.xcframework/ appioscombined.xcframework.zip
- name: Upload xcframework artifact
uses: actions/upload-artifact@v3
with:
name: XCFrameworks
path: appioscombined.xcframework.zip
- name: Copy XCFramework to build dir
working-directory: app-ios
run: |
mkdir -p build
cp -r '../app-ios-combined/build/XCFrameworks/debug/appioscombined.xcframework' 'build'
- name: Build App
working-directory: app-ios
run: |
scripts/build.sh build 'DroidKaigi2022 (iOS)' Debug