k2 + non-fatal catching #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |