Sugmanue/sra identity auth testing merge 2.21.12 snapshot #3893
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AWS CodeBuild CI | |
on: | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- '.all-contributorsrc' | |
- 'docs/**' | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '.all-contributorsrc' | |
- 'docs/**' | |
permissions: | |
id-token: write | |
jobs: | |
jdk8-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 7200 | |
- name: Run JDK8 build | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
timeout-minutes: 120 | |
with: | |
project-name: aws-sdk-java-v2 | |
jdk11-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 7200 | |
- name: Run JDK11 build | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
timeout-minutes: 120 | |
with: | |
project-name: aws-sdk-java-v2-JDK11 | |
jdk17-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 7200 | |
- name: Run JDK17 build | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
timeout-minutes: 120 | |
with: | |
project-name: aws-sdk-java-v2-JDK17 | |
jdk21-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 7200 | |
- name: Run JDK21 build | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
timeout-minutes: 120 | |
with: | |
project-name: aws-java-sdk-v2-JDK21 | |
windows-jdk8-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 7200 | |
- name: Run JDK8 windows build | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
with: | |
project-name: aws-sdk-java-v2-JDK8-windows | |
native-image-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 7200 | |
- name: Run native image test | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
with: | |
project-name: aws-sdk-java-v2-native-image-test | |
sonar-cloud-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 7200 | |
- name: Run sonar-cloud analysis | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
timeout-minutes: 120 | |
with: | |
project-name: aws-sdk-java-v2-sonar | |
env-vars-for-codebuild: | | |
PR, | |
BRANCH, | |
BASE | |
env: | |
PR: ${{ github.event.number }} | |
BRANCH: ${{ github.head_ref || 'master'}} | |
BASE: ${{ github.base_ref }} |