diff --git a/.github/workflows/checkout-and-build-smithy/action.yml b/.github/workflows/checkout-and-build-smithy/action.yml index c63fa706ea0..69dfd83c566 100644 --- a/.github/workflows/checkout-and-build-smithy/action.yml +++ b/.github/workflows/checkout-and-build-smithy/action.yml @@ -11,6 +11,7 @@ runs: with: java-version: 21 distribution: 'corretto' + cache: gradle - uses: actions/checkout@v4 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 002afd41930..231818df638 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ jobs: with: java-version: ${{ matrix.java }} distribution: 'corretto' + cache: gradle - name: Clean, build, test, and javadoc run: ./gradlew clean build javadoc -PnoFormat -Plog-tests --stacktrace @@ -86,6 +87,7 @@ jobs: with: java-version: 17 distribution: 'corretto' + cache: gradle - name: Publish Smithy to Maven local run: cd smithy && ./gradlew clean build pTML -PnoFormat diff --git a/.github/workflows/codeguru-reviewer.yml b/.github/workflows/codeguru-reviewer.yml index e33547c778d..93cac9780ee 100644 --- a/.github/workflows/codeguru-reviewer.yml +++ b/.github/workflows/codeguru-reviewer.yml @@ -34,6 +34,7 @@ jobs: with: distribution: 'corretto' java-version: 8 + cache: gradle - name: Compile if: steps.iam-role.outcome == 'success' diff --git a/.github/workflows/make-docs.yml b/.github/workflows/make-docs.yml index 5ada726d25c..8c4db9f40b5 100644 --- a/.github/workflows/make-docs.yml +++ b/.github/workflows/make-docs.yml @@ -25,6 +25,7 @@ jobs: with: java-version: 17 distribution: 'corretto' + cache: gradle - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/sdk-codegen-ci.yml b/.github/workflows/sdk-codegen-ci.yml index 3b0f255f805..f444d12ce5b 100644 --- a/.github/workflows/sdk-codegen-ci.yml +++ b/.github/workflows/sdk-codegen-ci.yml @@ -50,6 +50,7 @@ jobs: with: java-version: 17 distribution: 'corretto' + cache: gradle - name: Set up Go 1.19 uses: actions/setup-go@v5 @@ -134,6 +135,7 @@ jobs: with: java-version: 11 distribution: 'corretto' + cache: gradle - uses: actions/checkout@v5 - id: smithy-version @@ -195,6 +197,7 @@ jobs: with: java-version: 11 distribution: 'corretto' + cache: gradle - uses: actions/checkout@v5 - id: smithy-version