master
1# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2#
3# SPDX-License-Identifier: curl
5name: 'Linux'
7'on':
8 push:
9 branches:
10 - master
11 - 'curl-*'
12 - '*/ci'
13 paths-ignore:
14 - 'appveyor.*'
15 - 'Dockerfile'
16 - 'projects/**'
17 pull_request:
18 branches:
19 - master
20 - 'curl-*'
21 paths-ignore:
22 - 'appveyor.*'
23 - 'Dockerfile'
24 - 'projects/**'
26concurrency:
27 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
28 cancel-in-progress: true
30permissions: {}
31cache-mode: write
33env:
34 MAKEFLAGS: -j 5
35 CURL_CI: github
36 CURL_TEST_MIN: 1710
37 DO_NOT_TRACK: '1'
38 # renovate: datasource=github-tags depName=awslabs/aws-lc
39 AWSLC_VERSION: 5.11.0
40 # renovate: datasource=github-tags depName=google/boringssl
41 BORINGSSL_VERSION: 0.20261020.0
42 # renovate: datasource=github-releases depName=pizlonator/fil-c versioning=semver-coerced
43 FIL_C_VERSION: 0.687
44 # renovate: datasource=github-tags depName=libressl/portable
45 LIBRESSL_VERSION: 4.4.0
46 # renovate: datasource=github-tags depName=Mbed-TLS/mbedtls
47 MBEDTLS_VERSION: 4.2.0
48 # renovate: datasource=github-tags depName=Mbed-TLS/mbedtls extractVersion=^v?(?<version>3\..+)$
49 MBEDTLS_PREV_VERSION: 3.6.7
50 # renovate: datasource=github-tags depName=nghttp2/nghttp2
51 NGHTTP2_VERSION: 1.70.0
52 # renovate: datasource=github-tags depName=openldap/openldap versioning=regex:^(?<major>\d+)_(?<minor>\d+)_(?<patch>\d+)$ extractVersion=^OPENLDAP_REL_ENG_(?<version>.+)$
53 OPENLDAP_VERSION: 2_7_2
54 # renovate: datasource=github-releases depName=openssl/openssl extractVersion=^openssl-(?<version>.+)$
55 OPENSSL_VERSION: 4.1.0
56 # renovate: datasource=github-tags depName=rustls/rustls-ffi
57 RUSTLS_VERSION: 0.15.7
58 # renovate: datasource=github-tags depName=wolfSSL/wolfssl extractVersion=^v?(?<version>.+)-stable$
59 WOLFSSL_VERSION: 5.9.4
61jobs:
62 linux:
63 name: ${{ matrix.build.generate && 'CM' || 'AM' }} ${{ matrix.build.name }}
64 runs-on: ${{ matrix.build.image || 'ubuntu-latest' }}
65 container: ${{ matrix.build.container }}
66 timeout-minutes: 15
67 env:
68 MATRIX_BUILD: ${{ matrix.build.generate && 'cmake' || 'autotools' }}
69 MATRIX_INSTALL_PACKAGES: '${{ matrix.build.install_packages }}'
70 MATRIX_INSTALL_STEPS: '${{ matrix.build.install_steps }}'
71 strategy:
72 fail-fast: false
73 matrix:
74 build:
75 - name: 'awslc'
76 install_steps: awslc pytest test-linter
77 LDFLAGS: -Wl,-rpath,/home/runner/pkg/awslc/lib
78 configure: --with-openssl=/home/runner/pkg/awslc --enable-ech
80 - name: 'awslc'
81 install_packages: libidn2-dev
82 install_steps: awslc clean
83 generate: -DOPENSSL_ROOT_DIR=/home/runner/pkg/awslc -DUSE_ECH=ON -DCMAKE_UNITY_BUILD=OFF -DCURL_DROP_UNUSED=ON -DCURL_PATCHSTAMP=test-patch -DCURL_ENABLE_NTLM=ON
85 - name: 'boringssl'
86 install_steps: boringssl pytest
87 generate: -DOPENSSL_ROOT_DIR=/home/runner/pkg/boringssl -DOPENSSL_USE_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DUSE_ECH=ON
89 - name: 'libressl krb5'
90 image: ubuntu-24.04-arm
91 install_packages: libidn2-dev libnghttp2-dev libldap-dev libkrb5-dev
92 install_steps: libressl-c pytest codeset-test1
93 LDFLAGS: -Wl,-rpath,/home/runner/pkg/libressl/lib
94 configure: --with-openssl=/home/runner/pkg/libressl --with-gssapi --enable-debug
96 - name: 'libressl krb5 valgrind 1'
97 image: ubuntu-24.04-arm
98 install_packages: libnghttp2-dev libldap-dev libkrb5-dev valgrind
99 install_steps: libressl-c
100 tflags: '--subset=0/2'
101 generate: -DOPENSSL_ROOT_DIR=/home/runner/pkg/libressl -DCURL_USE_GSSAPI=ON -DENABLE_DEBUG=ON -DCURL_LIBCURL_VERSIONED_SYMBOLS=ON
103 - name: 'libressl krb5 valgrind 2'
104 image: ubuntu-24.04-arm
105 install_packages: libnghttp2-dev libldap-dev libkrb5-dev valgrind
106 install_steps: libressl-c
107 tflags: '--subset=1/2'
108 generate: -DOPENSSL_ROOT_DIR=/home/runner/pkg/libressl -DCURL_USE_GSSAPI=ON -DENABLE_DEBUG=ON -DCURL_LIBCURL_VERSIONED_SYMBOLS=ON
110 - name: 'libressl clang'
111 image: ubuntu-24.04-arm
112 install_packages: clang
113 install_steps: libressl-c
114 CC: clang
115 LDFLAGS: -Wl,-rpath,/home/runner/pkg/libressl/lib
116 configure: --with-openssl=/home/runner/pkg/libressl --enable-debug
118 - name: 'libressl Fil-C'
119 install_steps: filc libressl-filc nghttp2-filc pytest
120 CC: /home/runner/filc/build/bin/filcc
121 PKG_CONFIG_PATH: /home/runner/pkg/nghttp2/lib/pkgconfig
122 generate: >-
123 -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_UNITY_BUILD=OFF -DCURL_DISABLE_TYPECHECK=ON
124 -DOPENSSL_ROOT_DIR=/home/runner/pkg/libressl -DCURL_USE_LIBPSL=OFF
125 -DCURL_ZLIB=OFF -DCURL_BROTLI=OFF -DCURL_ZSTD=OFF
126 -DCURL_DISABLE_LDAP=ON -DUSE_LIBIDN2=OFF -DCURL_USE_LIBSSH2=OFF
128 - name: 'mbedtls gss valgrind 1'
129 image: ubuntu-24.04-arm
130 install_packages: libnghttp2-dev libidn2-dev libldap-dev libgss-dev valgrind
131 install_steps: mbedtls-latest
132 tflags: '--subset=0/2'
133 LDFLAGS: -Wl,-rpath,/home/runner/pkg/mbedtls/lib
134 PKG_CONFIG_PATH: /home/runner/pkg/mbedtls/lib/pkgconfig
135 generate: -DCURL_USE_MBEDTLS=ON -DENABLE_DEBUG=ON -DCURL_USE_GSSAPI=ON -DCURL_DROP_UNUSED=ON
137 - name: 'mbedtls gss valgrind 2'
138 image: ubuntu-24.04-arm
139 install_packages: libnghttp2-dev libidn2-dev libldap-dev libgss-dev valgrind
140 install_steps: mbedtls-latest
141 tflags: '--subset=1/2'
142 LDFLAGS: -Wl,-rpath,/home/runner/pkg/mbedtls/lib
143 PKG_CONFIG_PATH: /home/runner/pkg/mbedtls/lib/pkgconfig
144 generate: -DCURL_USE_MBEDTLS=ON -DENABLE_DEBUG=ON -DCURL_USE_GSSAPI=ON
146 - name: 'mbedtls clang'
147 install_packages: libssh-dev libnghttp2-dev libldap-dev clang
148 install_steps: mbedtls-latest pytest
149 CC: clang
150 LDFLAGS: -Wl,-rpath,/home/runner/pkg/mbedtls/lib
151 configure: --with-mbedtls=/home/runner/pkg/mbedtls --with-libssh --enable-debug --with-fish-functions-dir --with-zsh-functions-dir
153 - name: 'mbedtls-prev'
154 install_packages: libssh2-1-dev libnghttp2-dev libuv1-dev
155 install_steps: mbedtls-prev pytest
156 PKG_CONFIG_PATH: /home/runner/pkg/mbedtls-prev/lib/pkgconfig # Requires v3.6.0
157 generate: -DCURL_USE_MBEDTLS=ON -DCURL_USE_LIBUV=ON -DENABLE_DEBUG=ON
159 - name: 'mbedtls-pkg MultiSSL !pc'
160 install_packages: libnghttp2-dev libmbedtls-dev
161 install_steps: mbedtls-latest skipall
162 generate: >-
163 -DCURL_USE_MBEDTLS=ON -DENABLE_DEBUG=ON -DCURL_DEFAULT_SSL_BACKEND=mbedtls
164 -DMBEDTLS_INCLUDE_DIR=/home/runner/pkg/mbedtls/include
165 -DMBEDTLS_LIBRARY=/home/runner/pkg/mbedtls/lib/libmbedtls.a
166 -DMBEDX509_LIBRARY=/home/runner/pkg/mbedtls/lib/libmbedx509.a
167 -DMBEDCRYPTO_LIBRARY=/home/runner/pkg/mbedtls/lib/libmbedcrypto.a
168 -DCURL_USE_PKGCONFIG=OFF -DCURL_USE_OPENSSL=ON
169 -DBUILD_LIBCURL_DOCS=OFF -DBUILD_MISC_DOCS=OFF -DENABLE_CURL_MANUAL=OFF
170 -DCURL_COMPLETION_FISH=ON -DCURL_COMPLETION_ZSH=ON
172 - name: 'rustls valgrind 1'
173 image: ubuntu-24.04-arm
174 install_packages: libnghttp2-dev libldap-dev valgrind
175 install_steps: rust rustls
176 PKG_CONFIG_PATH: /home/runner/rustls/lib/pkgconfig
177 tflags: '--subset=0/2'
178 generate: -DCURL_USE_RUSTLS=ON -DUSE_ECH=ON -DENABLE_DEBUG=ON
180 - name: 'rustls valgrind 2'
181 image: ubuntu-24.04-arm
182 install_packages: libnghttp2-dev libldap-dev valgrind
183 install_steps: rust rustls
184 PKG_CONFIG_PATH: /home/runner/rustls/lib/pkgconfig
185 tflags: '--subset=1/2'
186 generate: -DCURL_USE_RUSTLS=ON -DUSE_ECH=ON -DENABLE_DEBUG=ON
188 - name: 'rustls'
189 install_packages: libnghttp2-dev libldap-dev
190 install_steps: rust rustls skiprun pytest
191 LDFLAGS: -Wl,-rpath,/home/runner/rustls/lib
192 PKG_CONFIG_PATH: /home/runner/rustls/lib/pkgconfig
193 configure: --with-rustls --enable-ech --enable-debug
195 - name: 'wolfssl-all'
196 image: ubuntu-26.04-arm
197 install_steps: wolfssl-all
198 LDFLAGS: -Wl,-rpath,/home/runner/pkg/wolfssl-all/lib
199 configure: --with-wolfssl=/home/runner/pkg/wolfssl-all --enable-ech --enable-debug
201 - name: 'wolfssl-opensslextra valgrind 1'
202 image: ubuntu-26.04-arm
203 install_packages: valgrind
204 install_steps: wolfssl-opensslextra
205 tflags: '--subset=0/2'
206 LDFLAGS: -Wl,-rpath,/home/runner/pkg/wolfssl-opensslextra/lib
207 configure: --with-wolfssl=/home/runner/pkg/wolfssl-opensslextra --enable-ech --enable-debug --enable-httpsig
209 - name: 'wolfssl-opensslextra valgrind 2'
210 image: ubuntu-26.04-arm
211 install_packages: valgrind
212 install_steps: wolfssl-opensslextra
213 tflags: '--subset=1/2'
214 LDFLAGS: -Wl,-rpath,/home/runner/pkg/wolfssl-opensslextra/lib
215 configure: --with-wolfssl=/home/runner/pkg/wolfssl-opensslextra --enable-ech --enable-debug --enable-httpsig
217 - name: 'openssl ubuntu-22.04'
218 image: ubuntu-22.04
219 configure: --disable-unity --enable-static --with-openssl
220 tflags: '--min=1700'
222 - name: 'openssl ubuntu-22.04-arm'
223 image: ubuntu-22.04-arm
224 configure: --disable-unity --enable-static --with-openssl
225 tflags: '--min=1700'
227 - name: 'openssl !proxy !examples'
228 image: ubuntu-22.04
229 configure: --with-openssl --disable-proxy
230 tflags: '--min=1500'
232 - name: 'openssl libssh !examples'
233 image: ubuntu-22.04
234 install_packages: libssh-dev
235 configure: --with-openssl --with-libssh
237 - name: 'openssl c-ares !examples'
238 image: ubuntu-22.04
239 install_packages: libc-ares-dev
240 configure: --with-openssl --enable-ares
241 tflags: '--min=1700'
243 - name: 'openssl c-ares debug'
244 image: ubuntu-22.04-arm
245 install_packages: libc-ares-dev
246 configure: --disable-unity --enable-static --with-openssl --enable-ares --enable-debug
247 tflags: '--min=1700'
249 - name: 'openssl default'
250 image: ubuntu-24.04
251 install_steps: pytest
252 configure: --with-openssl --enable-debug --disable-unity --enable-static
254 - name: 'openssl libssh2 sync-resolver valgrind 1'
255 image: ubuntu-26.04-arm
256 install_packages: gcc-16 libidn2-dev libssh2-1-dev libnghttp2-dev libldap-dev valgrind
257 CC: gcc-16
258 tflags: '--subset=0/2'
259 generate: -DENABLE_DEBUG=ON -DENABLE_THREADED_RESOLVER=OFF
261 - name: 'openssl libssh2 sync-resolver valgrind 2 +analyzer'
262 image: ubuntu-26.04-arm
263 install_packages: gcc-16 libidn2-dev libssh2-1-dev libnghttp2-dev libldap-dev valgrind
264 CC: gcc-16
265 tflags: '--subset=1/2'
266 generate: -DENABLE_DEBUG=ON -DENABLE_THREADED_RESOLVER=OFF -DCURL_GCC_ANALYZER=ON
268 - name: 'openssl intel C89'
269 image: ubuntu-24.04
270 install_packages: libssh-dev
271 install_steps: pytest
272 configure: CFLAGS=-std=gnu89 --with-openssl --with-libssh --enable-debug
274 - name: 'openssl arm C89'
275 image: ubuntu-24.04-arm
276 install_packages: libssh2-1-dev
277 install_steps: pytest
278 configure: CFLAGS=-std=gnu89 --with-openssl --with-libssh2 --enable-debug --disable-verbose
280 - name: 'openssl -O3 libssh valgrind 1'
281 image: ubuntu-24.04-arm
282 install_packages: libssh-dev valgrind
283 CFLAGS: -O3
284 tflags: '--subset=0/2'
285 generate: -DENABLE_DEBUG=ON -DCURL_USE_LIBSSH=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=50
287 - name: 'openssl -O3 libssh valgrind 2'
288 image: ubuntu-24.04-arm
289 install_packages: libssh-dev valgrind
290 CFLAGS: -O3
291 tflags: '--subset=1/2'
292 generate: -DENABLE_DEBUG=ON -DCURL_USE_LIBSSH=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=50
294 - name: 'openssl clang krb5 openldap static'
295 image: ubuntu-24.04
296 install_steps: openldap-static
297 install_packages: libidn2-dev libkrb5-dev clang libssl-dev
298 CC: clang
299 configure: >-
300 --enable-static --disable-shared --with-openssl --with-gssapi --enable-debug --disable-docs
301 --disable-manual --with-ldap=/home/runner/pkg/openldap-static --with-ldap-lib=ldap --with-lber-lib=lber
303 - name: 'openssl clang krb5 LTO'
304 image: ubuntu-24.04-arm
305 install_packages: libssh2-1-dev libkrb5-dev clang
306 install_steps: skiprun pytest
307 CC: clang
308 generate: -DCURL_USE_OPENSSL=ON -DCURL_USE_GSSAPI=ON -DENABLE_DEBUG=ON -DCURL_LTO=ON
310 - name: 'openssl !ipv6 !--libcurl !--digest-auth'
311 image: ubuntu-24.04-arm
312 configure: --with-openssl --disable-ipv6 --enable-debug --disable-unity --disable-libcurl-option --disable-digest-auth
314 - name: 'curl_global_init_mem debug valgrind 1'
315 image: ubuntu-24.04-arm
316 install_packages: valgrind
317 tflags: '--subset=0/2'
318 configure: --enable-init-mem-debug --with-openssl --disable-debug
320 - name: 'curl_global_init_mem debug valgrind 2'
321 image: ubuntu-24.04-arm
322 install_packages: valgrind
323 tflags: '--subset=1/2'
324 configure: --enable-init-mem-debug --with-openssl --disable-debug
326 - name: 'openssl https-only'
327 image: ubuntu-24.04-arm
328 tflags: '--min=1270'
329 configure: >-
330 --with-openssl --enable-debug --disable-unity
331 --disable-dict --disable-gopher --disable-ldap --disable-telnet
332 --disable-imap --disable-pop3 --disable-smtp
333 --disable-rtsp
334 --without-libssh2 --without-libssh
335 --disable-tftp --disable-ftp --disable-file
337 - name: 'openssl torture 1'
338 install_packages: libnghttp2-dev libssh2-1-dev libc-ares-dev
339 tflags: '-t --shallow=25 --subset=0/2'
340 torture: true
341 generate: -DCURL_USE_OPENSSL=ON -DENABLE_DEBUG=ON -DENABLE_ARES=ON -DCURL_DISABLE_HTTPSIG=OFF
343 - name: 'openssl torture 2'
344 install_packages: libnghttp2-dev libssh2-1-dev libc-ares-dev
345 tflags: '-t --shallow=25 --subset=1/2'
346 torture: true
347 generate: -DCURL_USE_OPENSSL=ON -DENABLE_DEBUG=ON -DENABLE_ARES=ON -DCURL_DISABLE_HTTPSIG=OFF
349 - name: 'openssl i686'
350 image: ubuntu-24.04
351 install_packages: gcc-14-i686-linux-gnu libssl-dev:i386 libssh2-1-dev:i386 libidn2-dev:i386 libc-ares-dev:i386 zlib1g-dev:i386
352 CC: i686-linux-gnu-gcc-14
353 LDFLAGS: -L/usr/lib/i386-linux-gnu
354 PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
355 configure: >-
356 CPPFLAGS=-I/usr/include/i386-linux-gnu
357 --host=i686-linux-gnu
358 --with-openssl --with-libssh2 --with-libidn2 --enable-ares --enable-debug
360 - name: '!ssl !http !smtp !imap'
361 image: ubuntu-26.04-arm
362 tflags: '--min=520'
363 configure: --without-ssl --enable-debug --disable-http --disable-smtp --disable-imap --disable-unity --enable-httpsig
365 - name: 'clang-tidy'
366 image: ubuntu-26.04-arm
367 install_packages: clang-22 clang-tidy-22 libssl-dev libidn2-dev libssh2-1-dev libnghttp2-dev libldap-dev libkrb5-dev libgnutls28-dev
368 install_steps: skiprun mbedtls-latest rustls wolfssl-opensslextra
369 install_steps_brew: openssl@4 gsasl
370 CC: clang-22
371 CFLAGS: -Wunused-macros
372 LDFLAGS: >-
373 -Wl,-rpath,/home/runner/pkg/wolfssl-opensslextra/lib
374 -Wl,-rpath,/home/runner/pkg/mbedtls/lib
375 -Wl,-rpath,/home/runner/rustls/lib
376 -Wl,-rpath,/home/linuxbrew/.linuxbrew/opt/openssl@4/lib
377 -Wl,-rpath,/home/linuxbrew/.linuxbrew/opt/gsasl/lib
379 PKG_CONFIG_PATH: "\
380 /home/runner/pkg/wolfssl-opensslextra/lib/pkgconfig:\
381 /home/runner/pkg/mbedtls/lib/pkgconfig:\
382 /home/runner/rustls/lib/pkgconfig:\
383 /home/linuxbrew/.linuxbrew/opt/gsasl/lib/pkgconfig"
384 generate: >-
385 -DCURL_USE_OPENSSL=ON -DOPENSSL_ROOT_DIR=/home/linuxbrew/.linuxbrew/opt/openssl@4
386 -DCURL_USE_WOLFSSL=ON -DCURL_USE_GNUTLS=ON -DCURL_USE_MBEDTLS=ON -DCURL_USE_RUSTLS=ON
387 -DCURL_USE_GSASL=ON
388 -DUSE_ECH=ON -DCURL_USE_GSSAPI=ON -DUSE_SSLS_EXPORT=ON -DCURL_DISABLE_HTTPSIG=OFF
389 -DCURL_CLANG_TIDY=ON -DCLANG_TIDY=/usr/bin/clang-tidy-22
391 - name: 'clang-tidy H3 c-ares !examples'
392 image: ubuntu-26.04-arm
393 install_packages: clang-22 clang-tidy-22 libidn2-dev libssh-dev libnghttp2-dev
394 install_steps: skiprun
395 install_steps_brew: libngtcp2 libnghttp3 c-ares
396 CC: clang-22
397 CFLAGS: -Wunused-macros
398 LDFLAGS: >-
399 -Wl,-rpath,/home/linuxbrew/.linuxbrew/opt/openssl/lib
400 -Wl,-rpath,/home/linuxbrew/.linuxbrew/opt/libngtcp2/lib
401 -Wl,-rpath,/home/linuxbrew/.linuxbrew/opt/libnghttp3/lib
402 -Wl,-rpath,/home/linuxbrew/.linuxbrew/opt/c-ares/lib
404 PKG_CONFIG_PATH: "\
405 /home/linuxbrew/.linuxbrew/opt/libngtcp2/lib/pkgconfig:\
406 /home/linuxbrew/.linuxbrew/opt/libnghttp3/lib/pkgconfig:\
407 /home/linuxbrew/.linuxbrew/opt/c-ares/lib/pkgconfig"
408 generate: >-
409 -DCURL_USE_OPENSSL=ON -DOPENSSL_ROOT_DIR=/home/linuxbrew/.linuxbrew/opt/openssl -DUSE_NGTCP2=ON
410 -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=ON -DUSE_HTTPSRR=ON -DENABLE_ARES=ON -DUSE_PROXY_HTTP3=ON
411 -DCURL_DISABLE_VERBOSE_STRINGS=ON
412 -DCURL_CLANG_TIDY=ON -DCLANG_TIDY=/usr/bin/clang-tidy-22
414 - name: 'address-sanitizer'
415 image: ubuntu-26.04
416 install_packages: clang-22 libssh-dev libidn2-dev libnghttp2-dev libubsan1 libasan8 libtsan2
417 install_steps: pytest randcurl
418 install_steps_brew: openssl@4
419 CC: clang-22
420 CFLAGS: >-
421 -fsanitize=address,bounds,leak,signed-integer-overflow,undefined
422 -fno-sanitize-recover=address,bounds,leak,signed-integer-overflow,undefined
423 -fPIC
425 LDFLAGS: >-
426 -fsanitize=address,bounds,leak,signed-integer-overflow,undefined
427 -fno-sanitize-recover=address,bounds,leak,signed-integer-overflow,undefined -ldl -lubsan
429 generate: -DENABLE_DEBUG=ON -DCURL_USE_OPENSSL=ON -DOPENSSL_ROOT_DIR=/home/linuxbrew/.linuxbrew/opt/openssl@4 -DUSE_ECH=ON -DCURL_USE_LIBSSH=ON
431 - name: 'address-sanitizer H3 c-ares'
432 image: ubuntu-26.04
433 install_packages: clang-22 libubsan1 libasan8 libtsan2
434 install_steps: pytest
435 install_steps_brew: openssl libssh2 libngtcp2 libnghttp3 c-ares
436 tflags: '!664 !665' # MD5 support is disabled in Homebrew since libssh2 1.11.1_6
437 CC: clang-22
438 CFLAGS: >-
439 -fsanitize=address,bounds,leak,signed-integer-overflow,undefined
440 -fno-sanitize-recover=address,bounds,leak,signed-integer-overflow,undefined
442 LDFLAGS: >-
443 -fsanitize=address,bounds,leak,signed-integer-overflow,undefined
444 -fno-sanitize-recover=address,bounds,leak,signed-integer-overflow,undefined -ldl -lubsan
445 -Wl,-rpath,/home/linuxbrew/.linuxbrew/opt/c-ares/lib
447 PKG_CONFIG_PATH: "\
448 /home/linuxbrew/.linuxbrew/opt/libssh2/lib/pkgconfig:\
449 /home/linuxbrew/.linuxbrew/opt/libngtcp2/lib/pkgconfig:\
450 /home/linuxbrew/.linuxbrew/opt/libnghttp3/lib/pkgconfig:\
451 /home/linuxbrew/.linuxbrew/opt/c-ares/lib/pkgconfig"
452 generate: >-
453 -DENABLE_DEBUG=ON -DCURL_USE_OPENSSL=ON -DOPENSSL_ROOT_DIR=/home/linuxbrew/.linuxbrew/opt/openssl -DUSE_NGTCP2=ON
454 -DUSE_SSLS_EXPORT=ON -DENABLE_ARES=ON -DUSE_PROXY_HTTP3=ON
456 - name: 'thread-sanitizer'
457 image: ubuntu-26.04
458 install_packages: clang-22 libtsan2
459 install_steps: pytest openssl-tsan
460 CC: clang-22
461 CFLAGS: -fsanitize=thread
462 LDFLAGS: -fsanitize=thread
463 generate: -DCMAKE_BUILD_TYPE=Debug -DENABLE_DEBUG=ON -DOPENSSL_ROOT_DIR=/home/runner/pkg/openssl -DUSE_ECH=ON
465 - name: 'memory-sanitizer'
466 image: ubuntu-26.04
467 install_packages: clang-22
468 install_steps: randcurl
469 CC: clang-22
470 CFLAGS: -fsanitize=memory -Wformat -Werror=format-security -Werror=array-bounds
471 LDFLAGS: -fsanitize=memory
472 LIBS: -ldl
473 configure: --without-ssl --without-zlib --without-brotli --without-zstd --without-libpsl --without-nghttp2 --enable-debug
474 tflags: '--min=1640'
476 - name: 'event-based'
477 image: ubuntu-24.04
478 install_packages: libssh-dev libuv1-dev
479 configure: --enable-debug --enable-static --disable-shared --disable-threaded-resolver --with-libssh --with-openssl --with-libuv
480 tflags: '-n --test-event --min=1430'
482 - name: 'duphandle'
483 image: ubuntu-26.04-arm
484 install_packages: libssh-dev
485 configure: --enable-debug --enable-static --disable-shared --disable-threaded-resolver --with-libssh --with-openssl
486 tflags: '-n --test-duphandle'
488 - name: 'IntelC openssl'
489 install_packages: libssl-dev libssh2-1-dev libnghttp2-dev libidn2-dev libldap-dev libkrb5-dev
490 install_steps: intelc
491 CC: icc
492 configure: --enable-debug --with-openssl --with-libssh2 --with-gssapi --enable-httpsig
494 - name: 'Slackware GnuTLS gssapi gcc'
495 # Flags used to build the curl Slackware package:
496 # https://ftpmirror.infania.net/slackware/slackware64-current/source/n/curl/curl.SlackBuild
497 # Current curl no longer supports OpenSSL 1.1.0, thus build with GnuTLS instead:
498 configure: --enable-debug --with-gnutls --with-libssh2 --with-gssapi --enable-ares --without-ca-bundle --with-ca-path=/etc/ssl/certs
499 # Docker Hub image that `container-job` executes in
500 container: andy5995/slackware-build-essential:15.0@sha256:c5aeede463b4a52b5f4650078418718f2447bdb23f9a4cac0d5fb262e7b8dc84 # manually bumped
502 - name: 'Alpine MUSL https-rr'
503 configure: --enable-debug --with-ssl --with-libssh2 --with-libidn2 --with-gssapi --enable-ldap --with-libpsl --enable-httpsrr --enable-ares --enable-threaded-resolver
504 container: alpine:3.24@sha256:b3413572228e34bd1c9245f5565e6cd127005655e8a7899aef33d8e83255c9e6 # 3.24.3 (manually bumped)
506 - name: 'Alpine MUSL https-rr c-ares'
507 configure: --enable-debug --with-ssl --with-libssh2 --with-libidn2 --with-gssapi --enable-ldap --with-libpsl --enable-httpsrr --enable-ares --disable-threaded-resolver
508 container: alpine:3.23@sha256:eaa20f3de212fa5cda0c64dc715b55ce28619928536d0d2a97ec1a922c1edce8 # 3.23.7 (manually bumped, a previous minor version)
510 steps:
511 - name: 'install prereqs'
512 if: ${{ matrix.build.container == null && !contains(matrix.build.name, 'i686') }}
513 timeout-minutes: 3
514 uses: $/.github/actions/pkg-install
515 with:
516 brew: ${{ matrix.build.install_steps_brew }}
517 apt: >-
518 libtool autoconf automake pkgconf
519 libpsl-dev zlib1g-dev libbrotli-dev libzstd-dev
520 ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') && 'stunnel4' || '' }}
521 ${{ contains(matrix.build.install_steps, 'pytest') && 'apache2 apache2-dev libnghttp2-dev vsftpd dante-server' || '' }}
522 ${{ matrix.build.install_packages }}
524 - name: 'install prereqs (i686)'
525 if: ${{ contains(matrix.build.name, 'i686') }}
526 timeout-minutes: 2
527 uses: $/.github/actions/pkg-install
528 with:
529 apt: >-
530 libtool autoconf automake pkgconf stunnel4
531 libpsl-dev:i386 libbrotli-dev:i386 libzstd-dev:i386
532 ${{ matrix.build.install_packages }}
534 - name: 'install prereqs (alpine)'
535 if: ${{ startsWith(matrix.build.container, 'alpine') }}
536 run: |
537 apk add --no-cache build-base autoconf automake libtool perl openssl-dev \
538 libssh2-dev zlib-dev brotli-dev zstd-dev libidn2-dev openldap-dev \
539 krb5-dev libpsl-dev c-ares-dev \
540 perl-time-hires openssh stunnel sudo git openssl
542 - name: 'install Fil-C'
543 if: ${{ contains(matrix.build.install_steps, 'filc') }}
544 run: |
545 cd /home/runner
546 arch="$(uname -m)"
547 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
548 --location --proto-redir =https "https://github.com/pizlonator/fil-c/releases/download/v${FIL_C_VERSION}/filc-${FIL_C_VERSION}-linux-${arch}.tar.xz" --output pkg.bin
549 sha256sum pkg.bin && tar -xJf pkg.bin && rm -f pkg.bin && mv "filc-${FIL_C_VERSION}-linux-${arch}" filc
550 cd filc
551 ./setup.sh
553 - name: 'cache libressl (c)'
554 if: ${{ contains(matrix.build.install_steps, 'libressl-c') }}
555 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
556 id: cache1-libressl-c
557 env:
558 cache-name: cache1-libressl-c
559 with:
560 path: ~/pkg/libressl
561 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.LIBRESSL_VERSION }}-${{ runner.arch }}
563 - name: 'build libressl (c)'
564 if: ${{ contains(matrix.build.install_steps, 'libressl-c') && !steps.cache1-libressl-c.outputs.cache-hit }}
565 run: |
566 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
567 "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz" --output pkg.bin
568 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
569 cd "libressl-${LIBRESSL_VERSION}"
570 cmake -B . -G Ninja -DLIBRESSL_APPS=OFF -DLIBRESSL_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/libressl
571 cmake --build .
572 cmake --install .
574 - name: 'cache libressl (filc)'
575 if: ${{ contains(matrix.build.install_steps, 'libressl-filc') }}
576 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
577 id: cache1-libressl-filc
578 env:
579 cache-name: cache1-libressl-filc
580 with:
581 path: ~/pkg/libressl
582 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.LIBRESSL_VERSION }}-${{ env.FIL_C_VERSION }}-${{ runner.arch }}
584 - name: 'build libressl (filc)'
585 if: ${{ contains(matrix.build.install_steps, 'libressl-filc') && !steps.cache1-libressl-filc.outputs.cache-hit }}
586 run: |
587 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
588 "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz" --output pkg.bin
589 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
590 cd "libressl-${LIBRESSL_VERSION}"
591 cmake -B . -G Ninja -DLIBRESSL_APPS=OFF -DLIBRESSL_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/libressl \
592 -DCMAKE_C_COMPILER=/home/runner/filc/build/bin/filcc -DENABLE_ASM=OFF
593 cmake --build .
594 cmake --install .
596 - name: 'cache nghttp2 (filc)'
597 if: ${{ contains(matrix.build.install_steps, 'nghttp2-filc') }}
598 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
599 id: cache1-nghttp2-filc
600 env:
601 cache-name: cache1-nghttp2-filc
602 with:
603 path: ~/pkg/nghttp2
604 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.NGHTTP2_VERSION }}-${{ env.FIL_C_VERSION }}-${{ runner.arch }}
606 - name: 'build nghttp2 (filc)'
607 if: ${{ contains(matrix.build.install_steps, 'nghttp2-filc') && !steps.cache1-nghttp2-filc.outputs.cache-hit }}
608 run: |
609 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
610 --location --proto-redir =https "https://github.com/nghttp2/nghttp2/releases/download/v${NGHTTP2_VERSION}/nghttp2-${NGHTTP2_VERSION}.tar.xz" --output pkg.bin
611 sha256sum pkg.bin && tar -xJf pkg.bin && rm -f pkg.bin
612 cd "nghttp2-${NGHTTP2_VERSION}"
613 cmake -B . -G Ninja -DENABLE_LIB_ONLY=ON -DBUILD_TESTING=OFF -DENABLE_DOC=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/nghttp2 \
614 -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF \
615 -DCMAKE_C_COMPILER=/home/runner/filc/build/bin/filcc
616 cmake --build .
617 cmake --install .
619 - name: 'cache wolfssl (all)'
620 if: ${{ contains(matrix.build.install_steps, 'wolfssl-all') }}
621 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
622 id: cache1-wolfssl-all
623 env:
624 cache-name: cache1-wolfssl-all
625 with:
626 path: ~/pkg/wolfssl-all
627 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.WOLFSSL_VERSION }}-${{ runner.arch }}
629 - name: 'build wolfssl (all)' # does not support `OPENSSL_COEXIST`
630 if: ${{ contains(matrix.build.install_steps, 'wolfssl-all') && !steps.cache1-wolfssl-all.outputs.cache-hit }}
631 run: |
632 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
633 --location --proto-redir =https "https://github.com/wolfSSL/wolfssl/archive/v${WOLFSSL_VERSION}-stable.tar.gz" --output pkg.bin
634 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
635 cd "wolfssl-${WOLFSSL_VERSION}-stable"
636 ./autogen.sh
637 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/wolfssl-all \
638 --enable-tls13 --enable-harden --enable-all \
639 --disable-benchmark --disable-crypttests --disable-examples
640 make install
642 - name: 'cache wolfssl (opensslextra)' # does support `OPENSSL_COEXIST`
643 if: ${{ contains(matrix.build.install_steps, 'wolfssl-opensslextra') }}
644 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
645 id: cache1-wolfssl-opensslextra
646 env:
647 cache-name: cache1-wolfssl-opensslextra
648 with:
649 path: ~/pkg/wolfssl-opensslextra
650 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.WOLFSSL_VERSION }}-${{ runner.arch }}
652 - name: 'build wolfssl (opensslextra)'
653 if: ${{ contains(matrix.build.install_steps, 'wolfssl-opensslextra') && !steps.cache1-wolfssl-opensslextra.outputs.cache-hit }}
654 run: |
655 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
656 --location --proto-redir =https "https://github.com/wolfSSL/wolfssl/archive/v${WOLFSSL_VERSION}-stable.tar.gz" --output pkg.bin
657 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
658 cd "wolfssl-${WOLFSSL_VERSION}-stable"
659 ./autogen.sh
660 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/wolfssl-opensslextra \
661 --enable-tls13 --enable-harden --enable-ech --enable-ed25519 --enable-opensslextra \
662 --disable-benchmark --disable-crypttests --disable-examples
663 make install
665 - name: 'cache mbedtls (latest)'
666 if: ${{ contains(matrix.build.install_steps, 'mbedtls-latest') }}
667 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
668 id: cache1-mbedtls-latest
669 env:
670 cache-name: cache1-mbedtls-latest
671 with:
672 path: ~/pkg/mbedtls
673 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.MBEDTLS_VERSION }}-${{ runner.arch }}
675 - name: 'build mbedtls (latest)'
676 if: ${{ contains(matrix.build.install_steps, 'mbedtls-latest') && !steps.cache1-mbedtls-latest.outputs.cache-hit }}
677 run: |
678 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
679 --location --proto-redir =https "https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-${MBEDTLS_VERSION}/mbedtls-${MBEDTLS_VERSION}.tar.bz2" --output pkg.bin
680 sha256sum pkg.bin && tar -xjf pkg.bin && rm -f pkg.bin
681 cd "mbedtls-${MBEDTLS_VERSION}"
682 ./scripts/config.py set MBEDTLS_THREADING_C
683 ./scripts/config.py set MBEDTLS_THREADING_PTHREAD
684 cmake -B . -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/mbedtls \
685 -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF
686 cmake --build .
687 cmake --install .
689 - name: 'cache mbedtls (prev)'
690 if: ${{ contains(matrix.build.install_steps, 'mbedtls-prev') }}
691 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
692 id: cache1-mbedtls-prev
693 env:
694 cache-name: cache1-mbedtls-prev
695 with:
696 path: ~/pkg/mbedtls-prev
697 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.MBEDTLS_PREV_VERSION }}-${{ runner.arch }}
699 - name: 'build mbedtls (prev)'
700 if: ${{ contains(matrix.build.install_steps, 'mbedtls-prev') && !steps.cache1-mbedtls-prev.outputs.cache-hit }}
701 run: |
702 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
703 --location --proto-redir =https "https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-${MBEDTLS_PREV_VERSION}/mbedtls-${MBEDTLS_PREV_VERSION}.tar.bz2" --output pkg.bin
704 sha256sum pkg.bin && tar -xjf pkg.bin && rm -f pkg.bin
705 cd "mbedtls-${MBEDTLS_PREV_VERSION}"
706 ./scripts/config.py set MBEDTLS_THREADING_C
707 ./scripts/config.py set MBEDTLS_THREADING_PTHREAD
708 cmake -B . -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/mbedtls-prev \
709 -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF
710 cmake --build .
711 cmake --install .
713 - name: 'cache openldap (static)'
714 if: ${{ contains(matrix.build.install_steps, 'openldap-static') }}
715 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
716 id: cache1-openldap-static
717 env:
718 cache-name: cache1-openldap-static
719 with:
720 path: ~/pkg/openldap-static
721 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.OPENLDAP_VERSION }}-${{ runner.arch }}
723 - name: 'build openldap (static)'
724 if: ${{ contains(matrix.build.install_steps, 'openldap-static') && !steps.cache1-openldap-static.outputs.cache-hit }}
725 run: |
726 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
727 "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${OPENLDAP_VERSION//_/.}.tgz" --output pkg.bin
728 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
729 cd "openldap-${OPENLDAP_VERSION//_/.}"
730 autoreconf -fi
731 ./configure --prefix=/home/runner/pkg/openldap-static --enable-static --disable-shared --disable-slapd
732 make install
734 - name: 'cache openssl (thread sanitizer)'
735 if: ${{ contains(matrix.build.install_steps, 'openssl-tsan') }}
736 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
737 id: cache1-openssl-tsan
738 env:
739 cache-name: cache1-openssl-tsan
740 with:
741 path: ~/pkg/openssl
742 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.OPENSSL_VERSION }}-${{ runner.arch }}
744 - name: 'build openssl (thread sanitizer)'
745 if: ${{ contains(matrix.build.install_steps, 'openssl-tsan') && !steps.cache1-openssl-tsan.outputs.cache-hit }}
746 run: |
747 git clone --quiet --depth 1 --branch "openssl-${OPENSSL_VERSION}" https://github.com/openssl/openssl
748 cd openssl
749 CC=clang CFLAGS='-fsanitize=thread' LDFLAGS='-fsanitize=thread' ./config --prefix=/home/runner/pkg/openssl --libdir=lib no-makedepend no-apps no-docs no-tests
750 make
751 make -j1 install_sw
753 - name: 'cache awslc'
754 if: ${{ contains(matrix.build.install_steps, 'awslc') }}
755 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
756 id: cache1-awslc
757 env:
758 cache-name: cache1-awslc
759 with:
760 path: ~/pkg/awslc
761 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.AWSLC_VERSION }}-${{ runner.arch }}
763 - name: 'build awslc'
764 if: ${{ contains(matrix.build.install_steps, 'awslc') && !steps.cache1-awslc.outputs.cache-hit }}
765 run: |
766 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
767 --location --proto-redir =https "https://github.com/awslabs/aws-lc/archive/refs/tags/v${AWSLC_VERSION}.tar.gz" --output pkg.bin
768 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
769 cd "aws-lc-${AWSLC_VERSION}"
770 cmake -B . -G Ninja -DBUILD_TESTING=OFF -DBUILD_TOOL=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/awslc
771 cmake --build .
772 cmake --install .
774 - name: 'cache boringssl'
775 if: ${{ contains(matrix.build.install_steps, 'boringssl') }}
776 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
777 id: cache1-boringssl
778 env:
779 cache-name: cache1-boringssl
780 with:
781 path: ~/pkg/boringssl
782 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.BORINGSSL_VERSION }}-${{ runner.arch }}
784 - name: 'build boringssl'
785 if: ${{ contains(matrix.build.install_steps, 'boringssl') && !steps.cache1-boringssl.outputs.cache-hit }}
786 run: |
787 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
788 --location --proto-redir =https "https://github.com/google/boringssl/releases/download/${BORINGSSL_VERSION}/boringssl-${BORINGSSL_VERSION}.tar.gz" --output pkg.bin
789 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
790 cd "boringssl-${BORINGSSL_VERSION}"
791 cmake -B . -G Ninja -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/boringssl
792 cmake --build .
793 cmake --install .
795 - name: 'cache rustls'
796 if: ${{ contains(matrix.build.install_steps, 'rustls') }}
797 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
798 id: cache1-rustls
799 env:
800 cache-name: cache1-rustls
801 with:
802 path: ~/rustls
803 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.RUSTLS_VERSION }}-${{ runner.arch }}
805 - name: 'install rustls'
806 if: ${{ contains(matrix.build.install_steps, 'rustls') && !steps.cache1-rustls.outputs.cache-hit }}
807 run: |
808 cd ~
809 if [ "$(uname -m)" = 'aarch64' ]; then
810 arch='arm64'
811 else
812 arch='x86_64'
813 fi
814 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
815 --location --proto-redir =https "https://github.com/rustls/rustls-ffi/releases/download/v${RUSTLS_VERSION}/rustls-ffi-${arch}-linux-gnu.zip" --output pkg.bin
816 sha256sum pkg.bin && unzip pkg.bin -d rustls && rm -f pkg.bin
817 sed -i.bak 's|prefix=dist|prefix=/home/runner/rustls|g' rustls/lib/pkgconfig/rustls.pc; cat rustls/lib/pkgconfig/rustls.pc
819 - name: 'install Intel compilers'
820 if: ${{ contains(matrix.build.install_steps, 'intelc') }}
821 timeout-minutes: 4
822 run: |
823 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
824 --compressed https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | \
825 sudo tee /etc/apt/trusted.gpg.d/intel-sw.asc >/dev/null
826 sudo add-apt-repository 'deb https://apt.repos.intel.com/oneapi all main'
827 sudo apt-get -o Dpkg::Use-Pty=0 install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
828 source /opt/intel/oneapi/setvars.sh
829 printenv >> "$GITHUB_ENV"
831 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
832 with:
833 persist-credentials: false
835 - name: 'autoreconf'
836 if: ${{ matrix.build.configure }}
837 run: autoreconf -fi
839 - name: 'configure'
840 env:
841 CC: '${{ matrix.build.CC }}'
842 CFLAGS: '${{ matrix.build.CFLAGS }}'
843 LDFLAGS: '${{ matrix.build.LDFLAGS }}'
844 LIBS: '${{ matrix.build.LIBS }}'
845 MATRIX_CONFIGURE: '${{ matrix.build.configure }}'
846 MATRIX_GENERATE: '${{ matrix.build.generate }}'
847 MATRIX_PKG_CONFIG_PATH: '${{ matrix.build.PKG_CONFIG_PATH }}'
848 run: |
849 [[ "${MATRIX_INSTALL_STEPS}" = *'awslc'* ]] && sudo apt-get -o Dpkg::Use-Pty=0 purge libssl-dev
850 [ -n "${MATRIX_PKG_CONFIG_PATH}" ] && export PKG_CONFIG_PATH="${MATRIX_PKG_CONFIG_PATH}"
851 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
852 cmake -B bld -G Ninja \
853 -DCMAKE_INSTALL_PREFIX="$HOME"/curl-install \
854 -DCMAKE_C_COMPILER_TARGET="$(uname -m)-unknown-linux-gnu" -DBUILD_STATIC_LIBS=ON \
855 -DCMAKE_UNITY_BUILD=ON -DCURL_WERROR=ON \
856 ${MATRIX_GENERATE}
857 else
858 mkdir bld && cd bld && \
859 ../configure --prefix="$HOME"/curl-install --enable-unity --enable-warnings --enable-werror --disable-static \
860 --disable-dependency-tracking --enable-option-checking=fatal \
861 ${MATRIX_CONFIGURE}
862 fi
864 - name: 'configure log'
865 if: ${{ !cancelled() }}
866 run: cat bld/config.log bld/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
868 - name: 'curl_config.h'
869 run: |
870 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
871 grep -F '#define' bld/lib/curl_config.h | sort || true
873 - name: 'libcurl.pc, curl-config'
874 run: |
875 for f in libcurl.pc curl-config; do
876 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
877 done
879 - name: 'test configs'
880 run: grep -H -v '^#' bld/tests/config bld/tests/http/config.ini || true
882 - name: 'build'
883 run: |
884 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
885 cmake --build bld --verbose
886 else
887 make -C bld V=1
888 fi
890 - name: 'single-use function check'
891 if: "${{ ((contains(matrix.build.configure, '--disable-unity') && contains(matrix.build.configure, '--enable-static')) || \
892 contains(matrix.build.generate, '-DCMAKE_UNITY_BUILD=OFF')) && !contains(matrix.build.install_steps, 'filc') }}"
893 background: true
894 run: |
895 git config --global --add safe.directory "*"
896 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
897 libcurla=bld/lib/libcurl.a
898 else
899 libcurla=bld/lib/.libs/libcurl.a
900 fi
901 ./scripts/singleuse.pl --unit "${libcurla}"
903 - name: 'curl -V'
904 run: |
905 find . -type f \( -name curl -o -name '*.so.*' -o -name '*.a' \) -print0 | sort -z | xargs -0 file --
906 find . -type f \( -name curl -o -name '*.so.*' -o -name '*.a' \) -print0 | sort -z | xargs -0 stat -c '%10s bytes: %n' --
907 bld/src/curl --disable -V
909 - name: 'curl install'
910 run: |
911 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
912 cmake --install bld --strip
913 if [[ "${MATRIX_INSTALL_STEPS}" = *'clean'* ]]; then
914 cmake --build bld --target curl_uninstall
915 fi
916 else
917 make -C bld V=1 install
918 fi
920 - name: 'randcurl'
921 if: ${{ contains(matrix.build.install_steps, 'randcurl') }}
922 background: true
923 run: |
924 mkdir run
925 cd run
926 ../.github/scripts/randcurl.pl 60 ../bld/src/curl
928 - name: 'build tests'
929 if: ${{ !contains(matrix.build.install_steps, 'skipall') }}
930 run: |
931 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
932 cmake --build bld --verbose --target testdeps
933 else
934 make -C bld V=1 -C tests
935 fi
937 - name: 'test-linter'
938 if: ${{ contains(matrix.build.install_steps, 'test-linter') }}
939 background: true
940 run: cd tests && ./test-linter.pl ../bld
942 - name: 'run tests'
943 if: ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') }}
944 timeout-minutes: ${{ contains(matrix.build.install_packages, 'valgrind') && 15 || 10 }}
945 env:
946 TEST_TARGET: ${{ matrix.build.torture && 'test-torture' || 'test-ci' }}
947 TFLAGS: '${{ matrix.build.tflags }}'
948 run: |
949 if [ "${TEST_TARGET}" = 'test-ci' ] && [[ "${MATRIX_INSTALL_PACKAGES}" = *'valgrind'* ]]; then
950 TFLAGS+=' -j6'
951 TFLAGS+=' !1674' # skip long-running test
952 if [[ "${MATRIX_INSTALL_PACKAGES}" = *'libgss-dev'* ]]; then
953 TFLAGS+=' ~2077 ~2078' # memory leaks from Curl_auth_decode_spnego_message() -> gss_init_sec_context()
954 fi
955 elif [ "${TEST_TARGET}" != 'test-ci' ]; then
956 TFLAGS+=' --buildinfo' # only test-ci sets this by default, set it manually for test-torture
957 fi
958 [ -f ~/venv/bin/activate ] && source ~/venv/bin/activate
959 if [[ "${MATRIX_INSTALL_STEPS}" = *'codeset-test1'* ]]; then
960 locale || true
961 export LC_ALL=C
962 export LC_CTYPE=C
963 export LC_NUMERIC=fr_FR.UTF-8
964 fi
965 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
966 cmake --build bld --verbose --target "${TEST_TARGET}"
967 if [[ "${MATRIX_INSTALL_STEPS}" = *'clean'* ]]; then
968 cmake --build bld --target clean-certs
969 fi
970 else
971 make -C bld V=1 "${TEST_TARGET}"
972 fi
974 - name: 'install pytest prereqs'
975 if: ${{ contains(matrix.build.install_steps, 'pytest') }}
976 uses: $/.github/actions/pkg-install
977 with:
978 pip: -r tests/http/requirements.txt
980 - name: 'run pytest'
981 if: ${{ contains(matrix.build.install_steps, 'pytest') }}
982 env:
983 PYTEST_ADDOPTS: '--color=yes'
984 PYTEST_XDIST_AUTO_NUM_WORKERS: 4
985 run: |
986 [ -f ~/venv/bin/activate ] && source ~/venv/bin/activate
987 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
988 cmake --build bld --verbose --target curl-pytest-ci
989 else
990 make -C bld V=1 pytest-ci
991 fi
993 - name: 'build examples'
994 if: ${{ !contains(matrix.build.install_packages, 'valgrind') && !contains(matrix.build.name, '!examples') }}
995 run: |
996 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
997 cmake --build bld --verbose --target curl-examples-build
998 else
999 make -C bld V=1 examples
1000 fi
Diagnostics4 git calls · 170 ms
CallStatusSizeTime0170 ms
discover200152 B2 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=152 git.server.agent=gitty/1.0 git.server.object_format=sha1 git.server.caps=agent ls-refs fetch object-format git.server.fetch=shallow filter sideband-all git.protocol.version=2 git.pkt.frames=8 git.pkt.data=6 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=152 git.pkt.payload.max=34
ls-refs200149 B · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=149 git.pkt.payload.max=78 git.ls_refs.count=2 git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=blob:none git.fetch.filter.requested=tree:0 git.fetch.filter.fallback=blob:none git.fetch.filter.learned=false git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=10 git.pkt.data=8 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=293470 git.pkt.payload.max=65516 git.sideband.band1.bytes=293354 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=87 git.pack.bytes=293354 git.pack.ofs_delta=0 git.pack.ref_delta=1 git.pack.chain.max=1 git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0 git.pack.full=86Open pack map
fetch2009.5 KiB165 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=165 git.response.bytes=9757 git.response.cache=MISS git.response.duration_ms=165 git.fetch.wants=f1934273e882eb8df44ac1c2dd31ded32a00a58e git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=9757 git.pkt.payload.max=9736 git.sideband.band1.bytes=9735 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
- Ref
- refs/heads/master
- Commit
- 31c911efe5652725e930f4d2e60c9060e5f6646d
- cf-ray
- a5e18a735a555e37
- Request
- d3068aea…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format