generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 174
201 lines (193 loc) · 6.58 KB
/
linux_arm_omnibus.yml
File metadata and controls
201 lines (193 loc) · 6.58 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
name: linux-arm-omnibus
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
GOPROXY: https://proxy.golang.org,direct
permissions:
contents: read
jobs:
graviton2:
name: graviton2-${{ matrix.name }}
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
fleet:linux-graviton2-c6g-2xlarge
strategy:
fail-fast: false
matrix:
include:
- name: asan-tests
options: --privileged
run: ./tests/ci/run_posix_sanitizers.sh
- name: fips-tests
run: ./tests/ci/run_fips_tests.sh
steps:
- uses: actions/checkout@v5
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/amazonlinux:2023
options: ${{ matrix.options || '' }}
env: |
AWS_LC_GO_TEST_TIMEOUT=60m
run: |
source /opt/compiler-env/setup-clang-15.sh
${{ matrix.run }}
graviton4:
name: graviton4-${{ matrix.name }}
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
fleet:linux-graviton4-r8g-2xlarge
strategy:
fail-fast: false
matrix:
include:
- name: asan-tests
options: --privileged
run: ./tests/ci/run_posix_sanitizers.sh
- name: fips-tests
run: ./tests/ci/run_fips_tests.sh
steps:
- uses: actions/checkout@v5
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/amazonlinux:2023
options: ${{ matrix.options || '' }}
env: |
AWS_LC_GO_TEST_TIMEOUT=60m
run: |
source /opt/compiler-env/setup-clang-15.sh
${{ matrix.run }}
# BoringSSL has 7k+ ssl runner tests, and the total number of the runner tests keep increasing.
# When ASAN enabled, the tests take more than 1 hour to finish. The cause relates to https://github.com/google/sanitizers/issues/1331,
# https://github.com/google/sanitizers/issues/703, and fixed in https://reviews.llvm.org/D60243 which is pending a review.
# To reduce the total time, these tests are broken into 4 distinct parts
asan-ssl-part1:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_END_INDEX: 3500
steps:
- uses: actions/checkout@v5
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/amazonlinux:2023
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_END_INDEX
run: |
source /opt/compiler-env/setup-clang-15.sh
./tests/ci/run_ssl_asan_tests.sh
asan-ssl-part2:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_START_INDEX: 3501
AWS_LC_SSL_RUNNER_END_INDEX: 5500
steps:
- uses: actions/checkout@v5
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/amazonlinux:2023
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_START_INDEX
AWS_LC_SSL_RUNNER_END_INDEX
run: |
source /opt/compiler-env/setup-clang-15.sh
./tests/ci/run_ssl_asan_tests.sh
asan-ssl-part3:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_START_INDEX: 5501
AWS_LC_SSL_RUNNER_END_INDEX: 7000
steps:
- uses: actions/checkout@v5
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/amazonlinux:2023
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_START_INDEX
AWS_LC_SSL_RUNNER_END_INDEX
run: |
source /opt/compiler-env/setup-clang-15.sh
./tests/ci/run_ssl_asan_tests.sh
asan-ssl-part4:
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
env:
AWS_LC_GO_TEST_TIMEOUT: 60m
AWS_LC_SSL_RUNNER_START_INDEX: 7001
steps:
- uses: actions/checkout@v5
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/amazonlinux:2023
env: |
AWS_LC_GO_TEST_TIMEOUT
AWS_LC_SSL_RUNNER_START_INDEX
run: |
source /opt/compiler-env/setup-clang-15.sh
./tests/ci/run_ssl_asan_tests.sh
# Build and test aws-lc without Perl/Go.
minimal_tests:
name: minimal-ubuntu:22.04-clang-7-aarch64
runs-on:
- codebuild-aws-lc-ci-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
image:arm-3.0
instance-size:large
steps:
- uses: actions/checkout@v5
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- uses: ./.github/actions/codebuild-docker-run
name: Run Container
with:
image: ${{ steps.login-ecr.outputs.registry }}/aws-lc/ubuntu:20.04
run: |
source /opt/compiler-env/setup-clang-7.sh
./tests/ci/run_minimal_tests.sh