Skip to content

Commit 9db4065

Browse files
authored
chore: refresh Mac CI targets, enable parallel builds by default (#1440)
1 parent 5e0a9ac commit 9db4065

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ jobs:
9090
WorkflowSucceeded:${{ job.status == 'success' && '1' || '0' }}:Count
9191
WorkflowDuration:${{ steps.end.outputs.duration }}:Seconds
9292
93-
# macos-14 build and test for targets: jvm, macoArm64, iosSimulatorArm64, watchosSimulatorArm65, tvosSimulatorArm64
94-
# macos-13 build and test for targets: jvm, macoX64, iosX64, tvosX64, watchosX64
93+
# macOS ARM images build and test for targets: jvm, macosArm64, iosSimulatorArm64, watchosSimulatorArm65, tvosSimulatorArm64
94+
# macos x64 images build and test for targets: jvm, macosX64, iosX64, tvosX64, watchosX64
9595
macos:
9696
strategy:
9797
fail-fast: false
9898
matrix:
99-
os: [macos-14, macos-13]
99+
os:
100+
- macos-15-large # x64
101+
- macos-15-xlarge # ARM
100102
runs-on: ${{ matrix.os }}
101103
steps:
102104
- name: Checkout sources
@@ -111,6 +113,17 @@ jobs:
111113
working-directory: ./smithy-kotlin
112114
shell: bash
113115
run: |
116+
# Bump memory profile for Kotlin daemon
117+
cat gradle.properties \
118+
| sed -r 's/-Xmx[0-9]+G/-Xmx6G/g' \
119+
| sed -r 's/-XX:MaxMetaspaceSize=[0-9]+G/-XX:MaxMetaspaceSize=2G/g' \
120+
> gradle.properties2
121+
mv gradle.properties2 gradle.properties
122+
123+
echo "Modified gradle.properties:"
124+
cat gradle.properties
125+
echo ""
126+
114127
# FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532
115128
# echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
116129
./gradlew apiCheck
@@ -369,7 +382,7 @@ jobs:
369382
run: |
370383
# TODO - JVM only
371384
cd $GITHUB_WORKSPACE/smithy-kotlin
372-
./gradlew --parallel -Paws.kotlin.native=false publishToMavenLocal
385+
./gradlew -Paws.kotlin.native=false publishToMavenLocal
373386
SMITHY_KOTLIN_RUNTIME_VERSION=$(grep sdkVersion= gradle.properties | cut -d = -f 2)
374387
SMITHY_KOTLIN_CODEGEN_VERSION=$(grep codegenVersion= gradle.properties | cut -d = -f 2)
375388
cd $GITHUB_WORKSPACE/aws-sdk-kotlin
@@ -380,7 +393,7 @@ jobs:
380393
# smithy-kotlin should be
381394
sed -i "s/smithy-kotlin-runtime-version = .*$/smithy-kotlin-runtime-version = \"$SMITHY_KOTLIN_RUNTIME_VERSION\"/" gradle/libs.versions.toml
382395
sed -i "s/smithy-kotlin-codegen-version = .*$/smithy-kotlin-codegen-version = \"$SMITHY_KOTLIN_CODEGEN_VERSION\"/" gradle/libs.versions.toml
383-
./gradlew --parallel -Paws.kotlin.native=false publishToMavenLocal
396+
./gradlew -Paws.kotlin.native=false publishToMavenLocal
384397
./gradlew -Paws.kotlin.native=false test jvmTest
385398
./gradlew -Paws.kotlin.native=false testAllProtocols
386399
- name: Calculate duration

builder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"build_dir": "target/build",
1515
"build_steps": [
16-
"{gradlew} assemble --parallel"
16+
"{gradlew} assemble"
1717
],
1818
"post_build_steps": [
1919
"{gradlew} publishToMavenLocal"

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ kotlinx.atomicfu.enableNativeIrTransformation=false
1212

1313
# gradle
1414
org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G
15+
org.gradle.parallel=true
1516

1617
# SDK
1718
sdkVersion=1.5.15-SNAPSHOT
@@ -21,4 +22,4 @@ codegenVersion=0.35.15-SNAPSHOT
2122

2223
# FIXME Remove after Dokka 2.0 Gradle plugin is stable
2324
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
24-
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
25+
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true

runtime/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
import aws.sdk.kotlin.gradle.dsl.configurePublishing
6-
import aws.sdk.kotlin.gradle.kmp.*
76
import aws.sdk.kotlin.gradle.kmp.configureKmpTargets
87
import aws.sdk.kotlin.gradle.kmp.kotlin
98
import aws.sdk.kotlin.gradle.kmp.needsKmpConfigured
@@ -135,7 +134,7 @@ subprojects {
135134
}
136135

137136
testLogging {
138-
events("passed", "skipped", "failed")
137+
events("passed", "skipped", "failed", "standardOut", "standardError")
139138
showStandardStreams = true
140139
showStackTraces = true
141140
showExceptions = true

0 commit comments

Comments
 (0)