File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1919 ./gradlew publishAllPublicationsToTestLocalRepository --parallel
2020
2121 - name : Calculate metrics
22- uses : awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/calculate-and-upload@asm-v2 # TODO: Change to main before merging
22+ uses : awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/calculate-and-upload@main
2323 with :
2424 upload : ' false'
2525 release_metrics : ' false'
3131 aws-region : us-west-2
3232
3333 - name : Process metrics
34- uses : awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/download-and-process@asm-v2 # TODO: Change to main before merging
34+ uses : awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/download-and-process@main
3535 with :
3636 download : ' false'
3737
Original file line number Diff line number Diff line change @@ -20,10 +20,18 @@ jobs:
2020 ./gradlew build --parallel
2121 ./gradlew publishAllPublicationsToTestLocalRepository --parallel
2222
23+ - name : Configure credentials
24+ uses : aws-actions/configure-aws-credentials@v4
25+ with :
26+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
27+ aws-region : us-west-2
28+
2329 - name : Calculate and upload metrics
24- uses : awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/calculate-and-upload@asm-v2 # TODO: Change to main before merging
30+ uses : awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/calculate-and-upload@main
2531 with :
2632 upload : ' true'
2733 release_metrics : ' true'
2834
29- permissions : {}
35+ permissions :
36+ id-token : write
37+ contents : read
Original file line number Diff line number Diff line change @@ -41,19 +41,12 @@ buildscript {
4141plugins {
4242 `dokka- convention`
4343 alias(libs.plugins.kotlinx.binary.compatibility.validator)
44- alias(libs.plugins.aws.kotlin.repo.tools.artifactsizemetrics)
4544 // ensure the correct version of KGP ends up on our buildscript classpath
4645 // since build-plugins also has <some> version in its dependency closure
4746 id(libs.plugins.kotlin.multiplatform.get().pluginId) apply false
4847 id(libs.plugins.kotlin.jvm.get().pluginId) apply false
4948}
5049
51- artifactSizeMetrics {
52- artifactPrefixes = setOf (" :runtime" )
53- significantChangeThresholdPercentage = 5.0
54- projectRepositoryName = " smithy-kotlin"
55- }
56-
5750val testJavaVersion = typedProp<String >(" test.java.version" )?.let {
5851 JavaLanguageVersion .of(it)
5952}?.also {
Original file line number Diff line number Diff line change @@ -118,4 +118,3 @@ kotlinx-binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-co
118118kotlinx-serialization = { id = " org.jetbrains.kotlin.plugin.serialization" , version.ref = " kotlin-version" }
119119aws-kotlin-repo-tools-kmp = { id = " aws.sdk.kotlin.gradle.kmp" , version.ref = " aws-kotlin-repo-tools-version" }
120120aws-kotlin-repo-tools-smithybuild = { id = " aws.sdk.kotlin.gradle.smithybuild" , version.ref = " aws-kotlin-repo-tools-version" }
121- aws-kotlin-repo-tools-artifactsizemetrics = { id = " aws.sdk.kotlin.gradle.artifactsizemetrics" , version.ref = " aws-kotlin-repo-tools-version" }
You can’t perform that action at this time.
0 commit comments