Move artifact upload code into the shell script
[openssl.git] / .github / workflows / ci.yml
1 # Copyright 2021-2023 The OpenSSL Project Authors. All Rights Reserved.
2 #
3 # Licensed under the Apache License 2.0 (the "License").  You may not use
4 # this file except in compliance with the License.  You can obtain a copy
5 # in the file LICENSE in the source distribution or at
6 # https://www.openssl.org/source/license.html
7
8 name: GitHub CI
9
10 on: [pull_request, push]
11
12 # for some reason, this does not work:
13 # variables:
14 #   BUILDOPTS: "-j4"
15 #   HARNESS_JOBS: "${HARNESS_JOBS:-4}"
16
17 # for some reason, this does not work:
18 # before_script:
19 #     - make="make -s"
20
21 permissions:
22   contents: read
23
24 env:
25   OSSL_RUN_CI_TESTS: 1
26
27 jobs:
28   check_update:
29     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
30     steps:
31     - name: install unifdef
32       run: |
33         sudo apt-get update
34         sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install unifdef
35     - uses: actions/checkout@v4
36       with:
37         fetch-depth: 0
38     - name: config
39       run: ./config --banner=Configured --strict-warnings enable-fips && perl configdata.pm --dump
40     - name: make build_generated
41       run: make -s build_generated
42     - name: make update
43       run: make update
44     - name: git diff
45       run: git diff --exit-code
46
47   check_docs:
48     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
49     steps:
50     - uses: actions/checkout@v4
51     - name: config
52       run: ./config --banner=Configured --strict-warnings enable-fips && perl configdata.pm --dump
53     - name: make build_generated
54       run: make -s build_generated
55     - name: make doc-nits
56       run: make doc-nits
57     - name: make help
58       run: make help
59     - name: make md-nits
60       run: |
61           sudo gem install mdl
62           make md-nits
63
64   # This checks that we use ANSI C language syntax and semantics.
65   # We are not as strict with libraries, but rather adapt to what's
66   # expected to be available in a certain version of each platform.
67   check-ansi:
68     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
69     steps:
70     - uses: actions/checkout@v4
71     - name: config
72       run: CPPFLAGS=-ansi ./config --banner=Configured no-asm no-makedepend enable-buildtest-c++ enable-fips --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
73     - name: make
74       run: make -s -j4
75
76   basic_gcc:
77     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
78     steps:
79     - uses: actions/checkout@v4
80     - name: checkout fuzz/corpora submodule
81       run: git submodule update --init --depth 1 fuzz/corpora
82     - name: localegen
83       run: sudo locale-gen tr_TR.UTF-8
84     - name: config
85       # enable-quic is on by default, but we leave it here to check we're testing the explicit enable somewhere
86       run: CC=gcc ./config --banner=Configured enable-fips enable-quic --strict-warnings && perl configdata.pm --dump
87     - name: make
88       run: make -s -j4
89     - name: get cpu info
90       run: |
91         cat /proc/cpuinfo
92         ./util/opensslwrap.sh version -c
93     - name: make test
94       run: .github/workflows/make-test
95     - name: save artifacts
96       uses: actions/upload-artifact@v4
97       with:
98         name: "ci@basic-gcc"
99         path: artifacts/
100
101   basic_clang:
102     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
103     steps:
104     - uses: actions/checkout@v4
105     - name: checkout fuzz/corpora submodule
106       run: git submodule update --init --depth 1 fuzz/corpora
107     - name: config
108       run: CC=clang ./config --banner=Configured no-fips --strict-warnings && perl configdata.pm --dump
109     - name: make
110       run: make -s -j4
111     - name: get cpu info
112       run: |
113         cat /proc/cpuinfo
114         ./util/opensslwrap.sh version -c
115     - name: make test
116       run: .github/workflows/make-test
117     - name: save artifacts
118       uses: actions/upload-artifact@v4
119       with:
120         name: "ci@basic-clang"
121         path: artifacts/
122
123   self-hosted:
124     if: github.repository == 'openssl/openssl'
125     strategy:
126       matrix:
127         os: [freebsd-13.2, ubuntu-arm64-22.04]
128     runs-on: ${{ matrix.os }}-self-hosted
129     continue-on-error: true
130     steps:
131     - uses: actions/checkout@v4
132     - name: config
133       run: ./config enable-fips enable-ec_nistp_64_gcc_128 enable-md2 enable-rc5 enable-ssl3 enable-ssl3-method enable-trace
134     - name: config dump
135       run: ./configdata.pm --dump
136     - name: make
137       run: make -j4
138     - name: get cpu info
139       run: ./util/opensslwrap.sh version -c
140     - name: make test
141       run: .github/workflows/make-test
142     - name: save artifacts
143       uses: actions/upload-artifact@v4
144       with:
145         name: "ci@self-hosted-${{ matrix.os }}"
146         path: artifacts/
147
148   minimal:
149     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
150     steps:
151     - uses: actions/checkout@v4
152     - name: checkout fuzz/corpora submodule
153       run: git submodule update --init --depth 1 fuzz/corpora
154     - name: config
155       run: ./config --banner=Configured --strict-warnings no-bulk no-pic no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT && perl configdata.pm --dump
156     - name: make
157       run: make -j4 # verbose, so no -s here
158     - name: get cpu info
159       run: |
160         cat /proc/cpuinfo
161         ./util/opensslwrap.sh version -c
162     - name: make test
163       run: .github/workflows/make-test
164     - name: save artifacts
165       uses: actions/upload-artifact@v4
166       with:
167         name: "ci@minimal"
168         path: artifacts/
169         if-no-files-found: ignore
170
171   no-deprecated:
172     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
173     steps:
174     - uses: actions/checkout@v4
175     - name: checkout fuzz/corpora submodule
176       run: git submodule update --init --depth 1 fuzz/corpora
177     - name: config
178       run: ./config --banner=Configured --strict-warnings no-deprecated enable-fips && perl configdata.pm --dump
179     - name: make
180       run: make -s -j4
181     - name: get cpu info
182       run: |
183         cat /proc/cpuinfo
184         ./util/opensslwrap.sh version -c
185     - name: make test
186       run: .github/workflows/make-test
187     - name: save artifacts
188       uses: actions/upload-artifact@v4
189       with:
190         name: "ci@no-deprecated"
191         path: artifacts/
192
193   no-shared-ubuntu:
194     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
195     steps:
196     - uses: actions/checkout@v4
197     - name: checkout fuzz/corpora submodule
198       run: git submodule update --init --depth 1 fuzz/corpora
199     - name: config
200       run: ./config --banner=Configured --strict-warnings no-shared no-fips && perl configdata.pm --dump
201     - name: make
202       run: make -s -j4
203     - name: get cpu info
204       run: |
205         cat /proc/cpuinfo
206         ./util/opensslwrap.sh version -c
207     - name: make test
208       run: .github/workflows/make-test
209     - name: save artifacts
210       uses: actions/upload-artifact@v4
211       with:
212         name: "ci@no-shared-ubuntu"
213         path: artifacts/
214
215   no-shared-macos:
216     runs-on: macos-latest
217     if: github.server_url == 'https://github.com'
218     steps:
219     - uses: actions/checkout@v4
220     - name: checkout fuzz/corpora submodule
221       run: git submodule update --init --depth 1 fuzz/corpora
222     - name: config
223       run: ./config --banner=Configured --strict-warnings no-shared no-fips && perl configdata.pm --dump
224     - name: make
225       run: make -s -j4
226     - name: get cpu info
227       run: |
228         sysctl machdep.cpu
229         ./util/opensslwrap.sh version -c
230     - name: make test
231       run: .github/workflows/make-test
232     - name: save artifacts
233       uses: actions/upload-artifact@v4
234       with:
235         name: "ci@no-shared-macos"
236         path: artifacts/
237
238   non-caching:
239     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
240     steps:
241     - uses: actions/checkout@v4
242     - name: checkout fuzz/corpora submodule
243       run: git submodule update --init --depth 1 fuzz/corpora
244     - name: Adjust ASLR for sanitizer
245       run: |
246         sudo cat /proc/sys/vm/mmap_rnd_bits
247         sudo sysctl -w vm.mmap_rnd_bits=28
248     - name: config
249       run: ./config --banner=Configured --debug enable-asan enable-ubsan no-cached-fetch no-fips no-dtls no-tls1 no-tls1-method no-tls1_1 no-tls1_1-method no-async && perl configdata.pm --dump
250     - name: make
251       run: make -s -j4
252     - name: get cpu info
253       run: |
254         cat /proc/cpuinfo
255         ./util/opensslwrap.sh version -c
256     - name: make test
257       run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0 TESTS="-test_fuzz* -test_ssl_* -test_sslapi -test_evp -test_cmp_http -test_verify -test_cms -test_store -test_enc -[01][0-9]"
258     - name: save artifacts
259       uses: actions/upload-artifact@v4
260       with:
261         name: "ci@non-caching"
262         path: artifacts/
263
264   address_ub_sanitizer:
265     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
266     steps:
267     - uses: actions/checkout@v4
268     - name: checkout fuzz/corpora submodule
269       run: git submodule update --init --depth 1 fuzz/corpora
270     - name: Adjust ASLR for sanitizer
271       run: |
272         sudo cat /proc/sys/vm/mmap_rnd_bits
273         sudo sysctl -w vm.mmap_rnd_bits=28
274     - name: config
275       run: ./config --banner=Configured --debug enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-fips && perl configdata.pm --dump
276     - name: make
277       run: make -s -j4
278     - name: get cpu info
279       run: |
280         cat /proc/cpuinfo
281         ./util/opensslwrap.sh version -c
282     - name: make test
283       run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0
284     - name: save artifacts
285       uses: actions/upload-artifact@v4
286       with:
287         name: "ci@address_ub_sanitizer"
288         path: artifacts/
289
290   fuzz_tests:
291     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
292     steps:
293     - uses: actions/checkout@v4
294     - name: checkout fuzz/corpora submodule
295       run: git submodule update --init --depth 1 fuzz/corpora
296     - name: Adjust ASLR for sanitizer
297       run: |
298         sudo cat /proc/sys/vm/mmap_rnd_bits
299         sudo sysctl -w vm.mmap_rnd_bits=28
300     - name: config
301       run: ./config --banner=Configured --debug -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method enable-nextprotoneg && perl configdata.pm --dump
302     - name: make
303       run: make -s -j4
304     - name: get cpu info
305       run: |
306         cat /proc/cpuinfo
307         ./util/opensslwrap.sh version -c
308     - name: make test
309       run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0 TESTS="test_fuzz*"
310     - name: save artifacts
311       uses: actions/upload-artifact@v4
312       with:
313         name: "ci@fuzz_tests"
314         path: artifacts/
315         if-no-files-found: ignore
316
317   memory_sanitizer:
318     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
319     steps:
320     - uses: actions/checkout@v4
321     - name: checkout fuzz/corpora submodule
322       run: git submodule update --init --depth 1 fuzz/corpora
323     - name: Adjust ASLR for sanitizer
324       run: |
325         sudo cat /proc/sys/vm/mmap_rnd_bits
326         sudo sysctl -w vm.mmap_rnd_bits=28
327     - name: config
328       # --debug -O1 is to produce a debug build that runs in a reasonable amount of time
329       run: CC=clang ./config --banner=Configured --debug -O1 -fsanitize=memory -DOSSL_SANITIZE_MEMORY -fno-optimize-sibling-calls enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-fips && perl configdata.pm --dump
330     - name: make
331       run: make -s -j4
332     - name: get cpu info
333       run: |
334         cat /proc/cpuinfo
335         ./util/opensslwrap.sh version -c
336     - name: make test
337       run: .github/workflows/make-test OPENSSL_TEST_RAND_ORDER=0
338     - name: save artifacts
339       uses: actions/upload-artifact@v4
340       with:
341         name: "ci@memory_sanitizer"
342         path: artifacts/
343
344   threads_sanitizer:
345     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
346     steps:
347     - uses: actions/checkout@v4
348     - name: checkout fuzz/corpora submodule
349       run: git submodule update --init --depth 1 fuzz/corpora
350     - name: Adjust ASLR for sanitizer
351       run: |
352         sudo cat /proc/sys/vm/mmap_rnd_bits
353         sudo sysctl -w vm.mmap_rnd_bits=28
354     - name: config
355       run: CC=clang ./config --banner=Configured no-fips --strict-warnings -fsanitize=thread && perl configdata.pm --dump
356     - name: make
357       run: make -s -j4
358     - name: get cpu info
359       run: |
360         cat /proc/cpuinfo
361         ./util/opensslwrap.sh version -c
362     - name: make test
363       run: .github/workflows/make-test V=1 TESTS="test_threads test_internal_provider test_provfetch test_provider test_pbe test_evp_kdf test_pkcs12 test_store test_evp test_quic*"
364     - name: save artifacts
365       uses: actions/upload-artifact@v4
366       with:
367         name: "ci@threads_sanitizer"
368         path: artifacts/
369
370   enable_non-default_options:
371     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
372     steps:
373     - uses: actions/checkout@v4
374     - name: checkout fuzz/corpora submodule
375       run: git submodule update --init --depth 1 fuzz/corpora
376     - name: modprobe tls
377       run: sudo modprobe tls
378     - name: config
379       run: ./config --banner=Configured --strict-warnings no-ec enable-ssl-trace enable-zlib enable-zlib-dynamic enable-crypto-mdebug enable-egd enable-ktls enable-fips no-threads && perl configdata.pm --dump
380     - name: make
381       run: make -s -j4
382     - name: get cpu info
383       run: |
384         cat /proc/cpuinfo
385         ./util/opensslwrap.sh version -c
386     - name: make test
387       run: .github/workflows/make-test
388     - name: save artifacts
389       uses: actions/upload-artifact@v4
390       with:
391         name: "ci@enable_non-default_options"
392         path: artifacts/
393
394   full_featured:
395     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
396     steps:
397     - uses: actions/checkout@v4
398     - name: checkout fuzz/corpora submodule
399       run: git submodule update --init --depth 1 fuzz/corpora
400     - name: modprobe tls
401       run: sudo modprobe tls
402     - name: Enable sctp
403       run: sudo modprobe sctp
404     - name: Enable auth in sctp
405       run: sudo sysctl -w net.sctp.auth_enable=1 
406     - name: install extra config support
407       run: sudo apt-get -y install libsctp-dev abigail-tools libzstd-dev zstd
408     - name: config
409       run: ./config --banner=Configured --strict-warnings enable-ktls enable-fips enable-egd enable-ec_nistp_64_gcc_128 enable-md2 enable-rc5 enable-sctp enable-ssl3 enable-ssl3-method enable-trace enable-zlib enable-zstd && perl configdata.pm --dump
410     - name: make
411       run: make -s -j4
412     - name: get cpu info
413       run: |
414         cat /proc/cpuinfo
415         ./util/opensslwrap.sh version -c
416     - name: make test
417       run: .github/workflows/make-test
418     - name: save artifacts
419       uses: actions/upload-artifact@v4
420       with:
421         name: "ci@full_featured"
422         path: artifacts/
423
424   no-legacy:
425     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
426     steps:
427     - uses: actions/checkout@v4
428     - name: checkout fuzz/corpora submodule
429       run: git submodule update --init --depth 1 fuzz/corpora
430     - name: config
431       run: ./config --banner=Configured --strict-warnings no-legacy enable-fips && perl configdata.pm --dump
432     - name: make
433       run: make -s -j4
434     - name: get cpu info
435       run: |
436         cat /proc/cpuinfo
437         ./util/opensslwrap.sh version -c
438     - name: make test
439       run: .github/workflows/make-test
440     - name: save artifacts
441       uses: actions/upload-artifact@v4
442       with:
443         name: "ci@no-legacy"
444         path: artifacts/
445
446   legacy:
447     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
448     steps:
449     - uses: actions/checkout@v4
450     - name: checkout fuzz/corpora submodule
451       run: git submodule update --init --depth 1 fuzz/corpora
452     - name: config
453       run: ./config --banner=Configured -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-fips && perl configdata.pm --dump
454     - name: make
455       run: make -s -j4
456     - name: get cpu info
457       run: |
458         cat /proc/cpuinfo
459         ./util/opensslwrap.sh version -c
460     - name: make test
461       run: .github/workflows/make-test
462     - name: save artifacts
463       uses: actions/upload-artifact@v4
464       with:
465         name: "ci@legacy"
466         path: artifacts/
467
468   # out-of-source-and-install checks multiple things at the same time:
469   # - That building, testing and installing works from an out-of-source
470   #   build tree
471   # - That building, testing and installing works with a read-only source
472   #   tree
473   out-of-readonly-source-and-install-ubuntu:
474     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
475     steps:
476     - uses: actions/checkout@v4
477       with:
478         path: ./source
479     - name: checkout fuzz/corpora submodule
480       run: git submodule update --init --depth 1 fuzz/corpora
481       working-directory: ./source
482     - name: make source read-only
483       run: chmod -R a-w ./source
484     - name: create build and install directories
485       run: |
486         mkdir ./build
487         mkdir ./install
488     - name: config
489       run: |
490         ../source/config --banner=Configured enable-fips enable-quic enable-acvp-tests --strict-warnings --prefix=$(cd ../install; pwd)
491         perl configdata.pm --dump
492       working-directory: ./build
493     - name: make
494       run: make -s -j4
495       working-directory: ./build
496     - name: get cpu info
497       run: |
498         cat /proc/cpuinfo
499         ./util/opensslwrap.sh version -c
500       working-directory: ./build
501     - name: make test
502       run: ../source/.github/workflows/make-test
503       working-directory: ./build
504     - name: save artifacts
505       uses: actions/upload-artifact@v4
506       with:
507         name: "ci@out-of-readonly-source-and-install-ubuntu"
508         path: build/artifacts/
509     - name: make install
510       run: make install
511       working-directory: ./build
512
513   out-of-readonly-source-and-install-macos:
514     runs-on: macos-latest
515     if: github.server_url == 'https://github.com'
516     steps:
517     - uses: actions/checkout@v4
518       with:
519         path: ./source
520     - name: checkout fuzz/corpora submodule
521       run: git submodule update --init --depth 1 fuzz/corpora
522       working-directory: ./source
523     - name: make source read-only
524       run: chmod -R a-w ./source
525     - name: create build and install directories
526       run: |
527         mkdir ./build
528         mkdir ./install
529     - name: config
530       run: |
531         ../source/config --banner=Configured enable-fips enable-quic enable-acvp-tests --strict-warnings --prefix=$(cd ../install; pwd)
532         perl configdata.pm --dump
533       working-directory: ./build
534     - name: make
535       run: make -s -j4
536       working-directory: ./build
537     - name: get cpu info
538       run: |
539         sysctl machdep.cpu
540         ./util/opensslwrap.sh version -c
541       working-directory: ./build
542     - name: make test
543       run: ../source/.github/workflows/make-test
544       working-directory: ./build
545     - name: save artifacts
546       uses: actions/upload-artifact@v4
547       with:
548         name: "ci@out-of-readonly-source-and-install-macos"
549         path: build/artifacts/
550     - name: make install
551       run: make install
552       working-directory: ./build
553
554   external-tests:
555     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
556     steps:
557     - uses: actions/checkout@v4
558       with:
559         submodules: recursive
560     - name: package installs
561       run: |
562         sudo apt-get update
563         sudo apt-get -yq install bison gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python3 python3-paste python3-pyrad slapd tcsh python3-virtualenv virtualenv python3-kdcproxy
564     - name: install cpanm and Test2::V0 for gost_engine testing
565       uses: perl-actions/install-with-cpanm@v1
566       with:
567         install: Test2::V0
568     - name: setup hostname workaround
569       run: sudo hostname localhost
570     - name: config
571       run: ./config --banner=Configured --strict-warnings --debug no-afalgeng enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 enable-external-tests no-fips && perl configdata.pm --dump
572     - name: make
573       run: make -s -j4
574     - name: get cpu info
575       run: |
576         cat /proc/cpuinfo
577         ./util/opensslwrap.sh version -c
578     - name: test external gost-engine
579       run: make test TESTS="test_external_gost_engine"
580     - name: test external krb5
581       run: make test TESTS="test_external_krb5"
582     - name: test external_tlsfuzzer
583       run: make test TESTS="test_external_tlsfuzzer"
584     - name: test external oqs-provider
585       run: make test TESTS="test_external_oqsprovider"
586
587   external-test-pyca:
588     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
589     strategy:
590       matrix:
591         RUST:
592           - 1.51.0
593         PYTHON:
594           - 3.9
595     steps:
596     - uses: actions/checkout@v4
597       with:
598         submodules: recursive
599     - name: Configure OpenSSL
600       run: ./config --banner=Configured --strict-warnings --debug enable-external-tests && perl configdata.pm --dump
601     - name: make
602       run: make -s -j4
603     - name: Setup Python
604       uses: actions/setup-python@v5.0.0
605       with:
606         python-version: ${{ matrix.PYTHON }}
607     - uses: dtolnay/rust-toolchain@master
608       with:
609         toolchain: ${{ matrix.RUST }}
610     - name: get cpu info
611       run: |
612         cat /proc/cpuinfo
613         ./util/opensslwrap.sh version -c
614     - name: test external pyca
615       run: make test TESTS="test_external_pyca" VERBOSE=1
616
617   external-test-cf-quiche:
618     runs-on: ${{ github.server_url == 'https://github.com' && 'ubuntu-latest' || 'ubuntu-22.04-self-hosted' }}
619     steps:
620     - uses: actions/checkout@v4
621       with:
622         submodules: recursive
623     - name: Configure OpenSSL
624       run: ./config --banner=Configured --strict-warnings enable-external-tests && perl configdata.pm --dump
625     - name: make
626       run: make -s -j4
627     - uses: dtolnay/rust-toolchain@stable
628     - name: get cpu info
629       run: |
630         cat /proc/cpuinfo
631         ./util/opensslwrap.sh version -c
632     - name: test external Cloudflare quiche
633       run: make test TESTS="test_external_cf_quiche" VERBOSE=1