-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 1.18 KB
/
build-ios.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
name: Build iOS Framework
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Build klibs
run: ./gradlew iosArm64MainKlibrary iosX64MainKlibrary macosArm64MainKlibrary macosX64MainKlibrary
- name: Build XCFramework
run: ./gradlew assembleKmmResultXCFramework
- name: Upload klibs
uses: actions/upload-artifact@v3
with:
name: macos-ios-tvos-kmmresult-klib
path: |
build/classes/kotlin/macos*/main/klib/kmmresult.klib
build/classes/kotlin/ios*/main/klib/kmmresult.klib
build/classes/kotlin/tvos*/main/klib/kmmresult.klib
- name: Upload debug XCFramework
uses: actions/upload-artifact@v3
with:
name: KmmResult-debug.xcframework
path: |
build/XCFrameworks/debug/
- name: Upload release XCFramework
uses: actions/upload-artifact@v3
with:
name: KmmResult-release.xcframework
path: |
build/XCFrameworks/release/