From 8f753719b9a9d9d400c83a82f8d814ae118152bb Mon Sep 17 00:00:00 2001 From: Lucas McDonald Date: Wed, 7 Oct 2026 23:45:56 +0000 Subject: [PATCH 1/2] ci: run Linux CI on CodeBuild-hosted runners --- .github/workflows/build.yml | 2 +- .github/workflows/examples.yml | 2 +- .github/workflows/static-analysis.yml | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a2527177..850e74dcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ on: jobs: Build: - runs-on: ubuntu-latest + runs-on: codebuild-CryptoToolsCI-linux-amazon-s3-encryption-client-java-${{ github.run_id }}-${{ github.run_attempt }} permissions: id-token: write contents: read diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 722dfa590..7da491ee4 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -12,7 +12,7 @@ on: jobs: MigrationExamples: - runs-on: ubuntu-latest + runs-on: codebuild-CryptoToolsCI-linux-amazon-s3-encryption-client-java-${{ github.run_id }}-${{ github.run_attempt }} permissions: id-token: write contents: read diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 4ee343f00..63dd221fc 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -5,7 +5,7 @@ on: jobs: SpotBugs: - runs-on: ubuntu-latest + runs-on: codebuild-CryptoToolsCI-linux-amazon-s3-encryption-client-java-${{ github.run_id }}-${{ github.run_attempt }} permissions: id-token: write contents: read @@ -13,6 +13,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + cache: 'maven' - name: Run SpotBugs run: mvn -B -ntp com.github.spotbugs:spotbugs-maven-plugin:check shell: bash From 78afbb5d014b07010a65f49b2b8e28a0a38b5bd4 Mon Sep 17 00:00:00 2001 From: lucmcdon Date: Mon, 16 Nov 2026 18:16:32 +0000 Subject: [PATCH 2/2] ci: drop changes that moving Linux jobs to CodeBuild does not need --- .github/workflows/static-analysis.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 63dd221fc..d898ffb17 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -13,12 +13,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup JDK - uses: actions/setup-java@v3 - with: - distribution: temurin - java-version: 17 - cache: 'maven' - name: Run SpotBugs run: mvn -B -ntp com.github.spotbugs:spotbugs-maven-plugin:check shell: bash