-
Notifications
You must be signed in to change notification settings - Fork 858
141 lines (139 loc) · 4.42 KB
/
codebuild-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: AWS CodeBuild CI
on:
pull_request:
merge_group:
push:
branches:
- master
paths-ignore:
- '**.md'
- '.all-contributorsrc'
- 'docs/**'
permissions:
id-token: write
jobs:
jdk8-build:
if: github.repository == 'aws/aws-sdk-java-v2'
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:
if: github.repository == 'aws/aws-sdk-java-v2'
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:
if: github.repository == 'aws/aws-sdk-java-v2'
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:
if: github.repository == 'aws/aws-sdk-java-v2'
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:
if: github.repository == 'aws/aws-sdk-java-v2'
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:
if: github.repository == 'aws/aws-sdk-java-v2'
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:
if: github.repository == 'aws/aws-sdk-java-v2'
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 }}
endpoints-tests:
if: github.repository == 'aws/aws-sdk-java-v2'
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 endpoints test
uses: aws-actions/aws-codebuild-run-build@v1
with:
project-name: aws-sdk-java-v2-endpoints-test