Skip to content

Commit

Permalink
Add tweaks so mac builds on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bitspittle committed Nov 25, 2024
1 parent 07a4f35 commit aa8e3d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/gradle-test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@ jobs:
path: ~/.konan
key: kotlin-native-compiler-${{ runner.OS }}

- name: Override Kotlin Version for testing
run: |
echo "KOTLIN_VERSION_OVERRIDE=2.0.0" >> $GITHUB_ENV
- name: Test with Gradle
run: ./gradlew allTests --no-daemon
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import javax.xml.parsers.DocumentBuilderFactory

plugins {
// NOTE: Intentionally older version to maximize compatibility with projects in the wild
// Going much older and this buildscript won't compile
kotlin("multiplatform") version "1.8.22"
// Going much older and this buildscript won't compile.
// NOTE2: We allow the CI to override the Kotlin version that we use, because otherwise this or that test fails due
// to missing features in the Kotlin multiplatform plugin.
kotlin("multiplatform") version (System.getenv("KOTLIN_VERSION_OVERRIDE") ?: "1.7.21")
id("org.jetbrains.dokka") version "1.9.20"
id("org.jetbrains.kotlinx.kover") version "0.8.3"
`maven-publish`
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ kotlin.native.ignoreDisabledTargets=true
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m
kotlin.mpp.stability.nowarn=true
# The Android Gradle plugin asked me to do this
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.androidSourceSetLayoutVersion=2

kotlin.native.cacheKind.macosArm64=none
kotlin.native.cacheKind.iosSimulatorArm64=none

0 comments on commit aa8e3d9

Please sign in to comment.