Skip to content

Commit

Permalink
Merge pull request #9 from SourcePointUSA/improve_ios_build_caching
Browse files Browse the repository at this point in the history
improve ios build times
  • Loading branch information
andresilveirah authored Sep 9, 2024
2 parents 7f1f58e + 801613d commit 5c854fc
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ jobs:
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
add-job-summary: 'on-failure'
- name: Cache Kotlin Konan
uses: actions/cache@v3
with:
path: |
~/.konan/**/*
key: kotlin-konan-${{ runner.os }}-android
- run: ./gradlew publish
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ jobs:
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
add-job-summary: 'on-failure'
- name: Cache Kotlin Konan
uses: actions/cache@v3
with:
path: |
~/.konan/**/*
key: kotlin-konan-${{ runner.os }}-ios
- run: ./gradlew :core:iosSimulatorArm64Test
android:
runs-on: 'macos-latest'
Expand All @@ -30,5 +40,14 @@ jobs:
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
add-job-summary: 'on-failure'
- name: Cache Kotlin Konan
uses: actions/cache@v3
with:
path: |
~/.konan/**/*
key: kotlin-konan-${{ runner.os }}-android
- run: ./gradlew :core:testDebugUnitTest
6 changes: 4 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
org.gradle.caching=true

#Kotlin
kotlin.code.style=official
kotlin.incremental.native=true

#Android
android.useAndroidX=true
Expand All @@ -15,8 +17,8 @@ iosDevice=iPhone 15
kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.native.binary.objcExportSuspendFunctionLaunchThreadRestriction=none
kotlin.native.cacheKind.iosX64=none
kotlin.native.cacheKind.iosArm64=none
#kotlin.native.cacheKind.iosX64=none
#kotlin.native.cacheKind.iosArm64=none

kotlin.mpp.androidGradlePluginCompatibility.nowarn=true

Expand Down

0 comments on commit 5c854fc

Please sign in to comment.