From 40ee103c367bb9832c6a0033751184b96c9c8b90 Mon Sep 17 00:00:00 2001 From: funkatronics Date: Wed, 16 Aug 2023 15:59:00 -0600 Subject: [PATCH] add ios targets, update build.yml --- .github/workflows/build.yml | 2 +- okiodriver/build.gradle.kts | 11 +++++++++++ rpccore/build.gradle.kts | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f5b000..6bdabc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: path: '**/build/reports' publish: - runs-on: ubuntu-latest + runs-on: macos-latest needs: build if: ${{ github.event_name == 'release' }} diff --git a/okiodriver/build.gradle.kts b/okiodriver/build.gradle.kts index 5e9c61f..1a79e14 100644 --- a/okiodriver/build.gradle.kts +++ b/okiodriver/build.gradle.kts @@ -14,6 +14,17 @@ kotlin { useJUnitPlatform() } } + listOf( + iosX64(), + iosArm64(), + iosSimulatorArm64(), + macosX64(), + macosArm64() + ).forEach { + it.binaries.framework { + baseName = "rpccore-okiodriver" + } + } sourceSets { val commonMain by getting { diff --git a/rpccore/build.gradle.kts b/rpccore/build.gradle.kts index 10212e0..223d3e9 100644 --- a/rpccore/build.gradle.kts +++ b/rpccore/build.gradle.kts @@ -15,6 +15,17 @@ kotlin { useJUnitPlatform() } } + listOf( + iosX64(), + iosArm64(), + iosSimulatorArm64(), + macosX64(), + macosArm64() + ).forEach { + it.binaries.framework { + baseName = "rpccore" + } + } // js(BOTH) { // browser { // commonWebpackConfig {