Skip to content

Commit 8d9ba37

Browse files
committed
misc: use URL in CI only
1 parent cfe3a8e commit 8d9ba37

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Configure gradle distribution URL
2+
description: >
3+
Configures the gradle distribution URL to our custom URL
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Configure gradle distribution URL
9+
run: |
10+
cd aws-crt-kotlin
11+
12+
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
13+
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
14+
shell: bash

.github/workflows/artifact-size-metrics.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
with:
2424
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
2525
aws-region: us-west-2
26+
- name: Configure Gradle
27+
uses: ./aws-crt-kotlin/.github/actions/custom-gradle-distribution-url
2628
- name: Generate Artifact Size Metrics
2729
run: ./gradlew artifactSizeMetrics
2830
- name: Save Artifact Size Metrics
@@ -40,6 +42,8 @@ jobs:
4042
with:
4143
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
4244
aws-region: us-west-2
45+
- name: Configure Gradle
46+
uses: ./aws-crt-kotlin/.github/actions/custom-gradle-distribution-url
4347
- name: Generate Artifact Size Metrics
4448
run: ./gradlew artifactSizeMetrics
4549
- name: Analyze Artifact Size Metrics

.github/workflows/kat-transform.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
java-version: 17
4444
cache: 'gradle'
4545

46+
- name: Configure Gradle
47+
uses: ./aws-crt-kotlin/.github/actions/custom-gradle-distribution-url
48+
4649
- name: Build
4750
working-directory: ./aws-crt-kotlin
4851
shell: bash
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
<<<<<<< Updated upstream
34
distributionUrl=https://d2pjps8lqszrgq.cloudfront.net/gradle-8.5-bin.zip
5+
=======
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
7+
>>>>>>> Stashed changes
48
networkTimeout=10000
59
zipStoreBase=GRADLE_USER_HOME
610
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)