Debian Codegraph @

crt/aws-c-cal/.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 push:
5 branches-ignore:
6 - 'main'
7
8 env:
9 BUILDER_VERSION: v0.9.92
10 BUILDER_SOURCE: releases
11 BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
12 PACKAGE_NAME: aws-c-cal
13 LINUX_BASE_IMAGE: ubuntu-18-x64
14 CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }}
15 AWS_DEFAULT_REGION: us-east-1
16
17 permissions:
18 id-token: write # This is required for requesting the JWT
19
20 jobs:
21 linux-compat:
22 runs-on: ubuntu-24.04 # latest
23 strategy:
24 fail-fast: false
25 matrix:
26 image:
27 - manylinux1-x64
28 - manylinux1-x86
29 - manylinux2014-x64
30 - manylinux2014-x86
31 - fedora-34-x64
32 - opensuse-leap
33 - rhel8-x64
34 - al2-x64
35 steps:
36 - uses: aws-actions/configure-aws-credentials@v4
37 with:
38 role-to-assume: ${{ env.CRT_CI_ROLE }}
39 aws-region: ${{ env.AWS_DEFAULT_REGION }}
40 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
41 - name: Build ${{ env.PACKAGE_NAME }}
42 run: |
43 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
44 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
45
46 linux-compiler-compat:
47 runs-on: ubuntu-24.04 # latest
48 strategy:
49 matrix:
50 compiler:
51 - clang-6
52 - clang-8
53 - clang-9
54 - clang-10
55 - clang-11
56 - clang-15
57 - clang-17
58 - clang-latest
59 - gcc-4.8
60 - gcc-5
61 - gcc-6
62 - gcc-7
63 - gcc-8
64 - gcc-11
65 - gcc-13
66 steps:
67 - uses: aws-actions/configure-aws-credentials@v4
68 with:
69 role-to-assume: ${{ env.CRT_CI_ROLE }}
70 aws-region: ${{ env.AWS_DEFAULT_REGION }}
71 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
72 - name: Build ${{ env.PACKAGE_NAME }}
73 run: |
74 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
75 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }}
76
77 clang-sanitizers:
78 runs-on: ubuntu-24.04 # latest
79 strategy:
80 matrix:
81 sanitizers: [",thread", ",address,undefined"]
82 steps:
83 - uses: aws-actions/configure-aws-credentials@v4
84 with:
85 role-to-assume: ${{ env.CRT_CI_ROLE }}
86 aws-region: ${{ env.AWS_DEFAULT_REGION }}
87 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
88 - name: Build ${{ env.PACKAGE_NAME }}
89 run: |
90 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
91 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-11 --cmake-extra=-DENABLE_SANITIZERS=ON --cmake-extra=-DSANITIZERS="${{ matrix.sanitizers }}"
92
93 linux-shared-libs:
94 runs-on: ubuntu-24.04 # latest
95 steps:
96 - uses: aws-actions/configure-aws-credentials@v4
97 with:
98 role-to-assume: ${{ env.CRT_CI_ROLE }}
99 aws-region: ${{ env.AWS_DEFAULT_REGION }}
100 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
101 - name: Build ${{ env.PACKAGE_NAME }}
102 run: |
103 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
104 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
105
106 #Warning: this ci relies on ubuntu pulling correct version of openssl
107 #Current version (18.04) pulls 1.1.1, but 22.04+ will pull in 3.0
108 linux-openssl-static:
109 runs-on: ubuntu-24.04 # latest
110 steps:
111 - uses: aws-actions/configure-aws-credentials@v4
112 with:
113 role-to-assume: ${{ env.CRT_CI_ROLE }}
114 aws-region: ${{ env.AWS_DEFAULT_REGION }}
115 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
116 - name: Build ${{ env.PACKAGE_NAME }}
117 run: |
118 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
119 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --variant=openssl --cmake-extra=-DUSE_OPENSSL=ON
120
121 linux-ancient-openssl-static:
122 runs-on: ubuntu-24.04 # latest
123 steps:
124 - uses: aws-actions/configure-aws-credentials@v4
125 with:
126 role-to-assume: ${{ env.CRT_CI_ROLE }}
127 aws-region: ${{ env.AWS_DEFAULT_REGION }}
128 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
129 - name: Build ${{ env.PACKAGE_NAME }}
130 run: |
131 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
132 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --variant=ancient-openssl --cmake-extra=-DUSE_OPENSSL=ON
133
134 #ubuntu 22.04 defaults to openssl3 version by default when installing
135 #libssl-dev package. Hence we can rely on OS version to pull in openssl3.
136 linux-openssl3-static:
137 runs-on: ubuntu-24.04 # latest
138 steps:
139 - uses: aws-actions/configure-aws-credentials@v4
140 with:
141 role-to-assume: ${{ env.CRT_CI_ROLE }}
142 aws-region: ${{ env.AWS_DEFAULT_REGION }}
143 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
144 - name: Build ${{ env.PACKAGE_NAME }}
145 run: |
146 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
147 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-ubuntu-22-x64 build -p ${{ env.PACKAGE_NAME }} --variant=openssl --cmake-extra=-DUSE_OPENSSL=ON
148
149 linux-openssl-shared:
150 runs-on: ubuntu-24.04 # latest
151 steps:
152 - uses: aws-actions/configure-aws-credentials@v4
153 with:
154 role-to-assume: ${{ env.CRT_CI_ROLE }}
155 aws-region: ${{ env.AWS_DEFAULT_REGION }}
156 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
157 - name: Build ${{ env.PACKAGE_NAME }}
158 run: |
159 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
160 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --variant=openssl --cmake-extra=-DUSE_OPENSSL=ON --cmake-extra=-DBUILD_SHARED_LIBS=ON
161
162 linux-boringssl:
163 runs-on: ubuntu-24.04 # latest
164 steps:
165 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
166 - name: Build ${{ env.PACKAGE_NAME }}
167 run: |
168 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
169 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --variant=boringssl --cmake-extra=-DUSE_OPENSSL=ON
170
171 linux-aws-lc-fips:
172 runs-on: ubuntu-24.04 # latest
173 steps:
174 - uses: aws-actions/configure-aws-credentials@v4
175 with:
176 role-to-assume: ${{ env.CRT_CI_ROLE }}
177 aws-region: ${{ env.AWS_DEFAULT_REGION }}
178 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
179 - name: Build ${{ env.PACKAGE_NAME }}
180 run: |
181 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
182 AWS_TEST_FIPS=1 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --variant=aws-lc-fips --cmake-extra=-DFIPS=ON --cmake-extra=-DPERL_EXECUTABLE=perl --cmake-extra=-DGO_EXECUTABLE=go --cmake-extra=-DCMAKE_POLICY_VERSION_MINIMUM=3.5
183
184 linux-musl:
185 runs-on: ${{ matrix.architecture == 'arm' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
186 strategy:
187 matrix:
188 include:
189 # x64 builds
190 - architecture: x64
191 image: alpine-3.16-x64
192 static: false
193 - architecture: x64
194 image: alpine-3.16-x64
195 static: true
196 # arm builds
197 - architecture: arm
198 image: alpine-3.16-arm64
199 static: false
200 - architecture: arm
201 image: alpine-3.16-arm64
202 static: true
203 steps:
204 - uses: aws-actions/configure-aws-credentials@v4
205 with:
206 role-to-assume: ${{ env.CRT_CI_ROLE }}
207 aws-region: ${{ env.AWS_DEFAULT_REGION }}
208 role-duration-seconds: 3600
209 - name: Build ${{ env.PACKAGE_NAME }} ${{ matrix.static && '(static)' || '' }}
210 run: |
211 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
212 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} ${{ matrix.static && '--cmake-extra=-DCMAKE_C_FLAGS="-static"' || '' }}
213
214
215 windows:
216 runs-on: windows-2025 # latest
217 steps:
218 - uses: aws-actions/configure-aws-credentials@v4
219 with:
220 role-to-assume: ${{ env.CRT_CI_ROLE }}
221 aws-region: ${{ env.AWS_DEFAULT_REGION }}
222 - name: Build ${{ env.PACKAGE_NAME }} + consumers
223 run: |
224 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
225 python builder.pyz build -p ${{ env.PACKAGE_NAME }}
226
227 windows-ed25519:
228 runs-on: windows-2025 # latest
229 steps:
230 - uses: ilammy/setup-nasm@v1
231 - uses: aws-actions/configure-aws-credentials@v4
232 with:
233 role-to-assume: ${{ env.CRT_CI_ROLE }}
234 aws-region: ${{ env.AWS_DEFAULT_REGION }}
235 - name: Build ${{ env.PACKAGE_NAME }} + consumers
236 run: |
237 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
238 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --variant=aws-lc-ed25519 --cmake-extra=-DAWS_USE_LIBCRYPTO_TO_SUPPORT_ED25519_EVERYWHERE=ON
239
240 windows-debug:
241 runs-on: windows-2025 # latest
242 steps:
243 - uses: aws-actions/configure-aws-credentials@v4
244 with:
245 role-to-assume: ${{ env.CRT_CI_ROLE }}
246 aws-region: ${{ env.AWS_DEFAULT_REGION }}
247 - name: Build ${{ env.PACKAGE_NAME }} + consumers
248 run: |
249 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
250 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --config Debug --variant=just-tests
251
252 windows-vc17:
253 runs-on: windows-2025 # latest
254 strategy:
255 matrix:
256 arch: [x86, x64]
257 steps:
258 - uses: aws-actions/configure-aws-credentials@v4
259 with:
260 role-to-assume: ${{ env.CRT_CI_ROLE }}
261 aws-region: ${{ env.AWS_DEFAULT_REGION }}
262 - name: Build ${{ env.PACKAGE_NAME }} + consumers
263 run: |
264 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
265 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --target windows-${{ matrix.arch }} --compiler msvc-17
266
267 windows-shared-libs:
268 runs-on: windows-2025 # latest
269 steps:
270 - uses: aws-actions/configure-aws-credentials@v4
271 with:
272 role-to-assume: ${{ env.CRT_CI_ROLE }}
273 aws-region: ${{ env.AWS_DEFAULT_REGION }}
274 - name: Build ${{ env.PACKAGE_NAME }} + consumers
275 run: |
276 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
277 python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
278
279 windows-app-verifier:
280 runs-on: windows-2025 # latest
281 steps:
282 - uses: aws-actions/configure-aws-credentials@v4
283 with:
284 role-to-assume: ${{ env.CRT_CI_ROLE }}
285 aws-region: ${{ env.AWS_DEFAULT_REGION }}
286 - name: Build ${{ env.PACKAGE_NAME }} + consumers
287 run: |
288 python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
289 python builder.pyz build -p ${{ env.PACKAGE_NAME }} run_tests=false --cmake-extra=-DBUILD_TESTING=ON
290 - name: Run and check AppVerifier
291 run: |
292 python .\aws-c-cal\build\deps\aws-c-common\scripts\appverifier_ctest.py --build_directory .\aws-c-cal\build\aws-c-cal
293
294 macos:
295 strategy:
296 matrix:
297 image: [macos-14-large, macos-14]
298 name: ${{ matrix.image == 'macos-14' && 'macos' || 'macos-x64' }}
299 runs-on: ${{ matrix.image }}
300 steps:
301 - uses: aws-actions/configure-aws-credentials@v4
302 with:
303 role-to-assume: ${{ env.CRT_CI_ROLE }}
304 aws-region: ${{ env.AWS_DEFAULT_REGION }}
305 - name: Build ${{ env.PACKAGE_NAME }} + consumers
306 run: |
307 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')"
308 chmod a+x builder
309 ./builder build -p ${{ env.PACKAGE_NAME }}
310
311 macos-ed25519:
312 strategy:
313 matrix:
314 image: [macos-15-large, macos-15]
315 name: ${{ matrix.image == 'macos-15' && 'macos' || 'macos-x64' }} with lc ed25519
316 runs-on: ${{ matrix.image }}
317 steps:
318 - uses: aws-actions/configure-aws-credentials@v4
319 with:
320 role-to-assume: ${{ env.CRT_CI_ROLE }}
321 aws-region: ${{ env.AWS_DEFAULT_REGION }}
322 - name: Build ${{ env.PACKAGE_NAME }} + consumers
323 run: |
324 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')"
325 chmod a+x builder
326 ./builder build -p ${{ env.PACKAGE_NAME }} --variant=aws-lc-ed25519 --cmake-extra=-DAWS_USE_LIBCRYPTO_TO_SUPPORT_ED25519_EVERYWHERE=ON
327
328 macos-min-deployment-target:
329 runs-on: macos-14 # latest
330 steps:
331 - uses: aws-actions/configure-aws-credentials@v4
332 with:
333 role-to-assume: ${{ env.CRT_CI_ROLE }}
334 aws-region: ${{ env.AWS_DEFAULT_REGION }}
335 - name: Build ${{ env.PACKAGE_NAME }} + consumers
336 run: |
337 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')"
338 chmod a+x builder
339 ./builder build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
340
341 freebsd:
342 runs-on: ubuntu-24.04 # latest
343 steps:
344 - uses: aws-actions/configure-aws-credentials@v4
345 with:
346 role-to-assume: ${{ env.CRT_CI_ROLE }}
347 aws-region: ${{ env.AWS_DEFAULT_REGION }}
348 - uses: actions/checkout@v4
349 - name: Build ${{ env.PACKAGE_NAME }} + consumers
350 uses: cross-platform-actions/[email protected]
351 with:
352 operating_system: freebsd
353 architecture: x86-64
354 version: '14.1'
355 shell: bash
356 run: |
357 sudo pkg install -y python3 net/py-urllib3
358 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')"
359 chmod a+x builder
360 ./builder build -p ${{ env.PACKAGE_NAME }}
361
362 openbsd:
363 runs-on: ubuntu-24.04 # latest
364 steps:
365 - uses: aws-actions/configure-aws-credentials@v4
366 with:
367 role-to-assume: ${{ env.CRT_CI_ROLE }}
368 aws-region: ${{ env.AWS_DEFAULT_REGION }}
369 - uses: actions/checkout@v4
370 - name: Build ${{ env.PACKAGE_NAME }} + consumers
371 uses: cross-platform-actions/[email protected]
372 with:
373 operating_system: openbsd
374 architecture: x86-64
375 version: '7.6'
376 shell: bash
377 run: |
378 sudo pkg_add py3-urllib3
379 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')"
380 chmod a+x builder
381 ./builder build -p ${{ env.PACKAGE_NAME }}
382
383 # Test downstream repos.
384 # This should not be required because we can run into a chicken and egg problem if there is a change that needs some fix in a downstream repo.
385 downstream:
386 runs-on: ubuntu-24.04 # latest
387 steps:
388 - uses: aws-actions/configure-aws-credentials@v4
389 with:
390 role-to-assume: ${{ env.CRT_CI_ROLE }}
391 aws-region: ${{ env.AWS_DEFAULT_REGION }}
392 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
393 - name: Build ${{ env.PACKAGE_NAME }}
394 run: |
395 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
396 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }}
397
398 byo-crypto:
399 runs-on: ubuntu-24.04 # latest
400 steps:
401 - uses: aws-actions/configure-aws-credentials@v4
402 with:
403 role-to-assume: ${{ env.CRT_CI_ROLE }}
404 aws-region: ${{ env.AWS_DEFAULT_REGION }}
405 # We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
406 - name: Build ${{ env.PACKAGE_NAME }}
407 run: |
408 aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
409 ./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --variant=no-tests --cmake-extra=-DBYO_CRYPTO=ON
410
411 s390x: # big-endian
412 runs-on: ubuntu-24.04
413 steps:
414 - uses: aws-actions/configure-aws-credentials@v4
415 with:
416 role-to-assume: ${{ env.CRT_CI_ROLE }}
417 aws-region: ${{ env.AWS_DEFAULT_REGION }}
418 - uses: actions/checkout@v4
419 - uses: uraimo/run-on-arch-action@v3
420 name: Run commands
421 id: runcmd
422 with:
423 arch: s390x
424 distro: ubuntu22.04
425 install: |
426 apt-get update -q -y
427 apt-get -y install sudo
428 apt-get -y install cmake
429 apt-get -y install make
430 apt-get -y install g++
431 apt-get -y install python3
432 apt-get -y install git
433 run: |
434 lscpu | grep Endian
435 python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
436 chmod a+x builder
437 ./builder build -p ${{ env.PACKAGE_NAME }} --variant s390x --cmake-extra=-DENABLE_SANITIZERS=OFF