From c26c3bc72713fd931c7533db14afef5d7a63e848 Mon Sep 17 00:00:00 2001 From: Aaron J Todd Date: Wed, 21 Feb 2024 17:15:18 -0500 Subject: [PATCH] reuse build setup for kn workaround --- .github/actions/setup-build/action.yml | 2 +- .github/workflows/artifact-size-check.yml | 18 ++++-------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/actions/setup-build/action.yml b/.github/actions/setup-build/action.yml index 8dca54fbde4..9330dc73c74 100644 --- a/.github/actions/setup-build/action.yml +++ b/.github/actions/setup-build/action.yml @@ -10,7 +10,7 @@ runs: with: path: 'aws-kotlin-repo-tools' repository: 'awslabs/aws-kotlin-repo-tools' - ref: '0.2.3' + ref: '0.4.0' sparse-checkout: | .github - name: Checkout smithy-kotlin diff --git a/.github/workflows/artifact-size-check.yml b/.github/workflows/artifact-size-check.yml index 9e6d5d4238a..d66de13e8ed 100644 --- a/.github/workflows/artifact-size-check.yml +++ b/.github/workflows/artifact-size-check.yml @@ -24,13 +24,8 @@ jobs: if: ${{ github.event_name == 'pull_request' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Configure JDK - uses: actions/setup-java@v3 - with: - distribution: 'corretto' - java-version: 17 - cache: 'gradle' + - name: Setup Build + uses: ./aws-sdk-kotlin/.github/actions/setup-build - name: Check artifact sizes run: | ./gradlew :codegen:sdk:bootstrap -Paws.services=${{ env.BOOTSTRAP_SERVICES }} @@ -60,13 +55,8 @@ jobs: if: ${{ github.event_name == 'release' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Configure JDK - uses: actions/setup-java@v3 - with: - distribution: 'corretto' - java-version: 17 - cache: 'gradle' + - name: Setup Build + uses: ./aws-sdk-kotlin/.github/actions/setup-build - name: Check artifact sizes run: | ./gradlew :codegen:sdk:bootstrap -Paws.services=${{ env.BOOTSTRAP_SERVICES }}