-
Notifications
You must be signed in to change notification settings - Fork 853
109 lines (107 loc) · 3.2 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
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
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 }}