master
1# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2#
3# SPDX-License-Identifier: curl
5name: 'Linux HTTP/3'
7'on':
8 push:
9 branches:
10 - master
11 - 'curl-*'
12 - '*/ci'
13 paths-ignore:
14 - '**/*.md'
15 - 'appveyor.*'
16 - 'Dockerfile'
17 - 'projects/**'
18 pull_request:
19 branches:
20 - master
21 - 'curl-*'
22 paths-ignore:
23 - '**/*.md'
24 - 'appveyor.*'
25 - 'Dockerfile'
26 - 'projects/**'
28concurrency:
29 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
30 cancel-in-progress: true
32permissions: {}
33cache-mode: write
35env:
36 MAKEFLAGS: -j 5
37 CURL_CI: github
38 CURL_TEST_MIN: 1820
39 DO_NOT_TRACK: '1'
40 # renovate: datasource=github-tags depName=awslabs/aws-lc
41 AWSLC_VERSION: 5.11.0
42 # renovate: datasource=github-tags depName=google/boringssl
43 BORINGSSL_VERSION: 0.20261020.0
44 # renovate: datasource=github-tags depName=gnutls/nettle versioning=semver-coerced extractVersion=^nettle_?(?<version>.+)_release_.+$
45 NETTLE_VERSION: '4.0'
46 # renovate: datasource=github-tags depName=gnutls/gnutls
47 GNUTLS_VERSION: 3.8.13
48 # renovate: datasource=github-tags depName=libressl/portable
49 LIBRESSL_VERSION: 4.4.0
50 # renovate: datasource=github-releases depName=openssl/openssl extractVersion=^openssl-(?<version>.+)$
51 OPENSSL_VERSION: 4.1.0
52 # renovate: datasource=github-releases depName=openssl/openssl extractVersion=^openssl-(?<version>3\.5\..+)$
53 OPENSSL_PREV_VERSION: 3.5.9
54 # renovate: datasource=github-tags depName=cloudflare/quiche
55 QUICHE_VERSION: 0.30.0
56 # renovate: datasource=github-tags depName=wolfSSL/wolfssl extractVersion=^v?(?<version>.+)-stable$
57 WOLFSSL_VERSION: 5.9.4
58 # renovate: datasource=github-tags depName=ngtcp2/nghttp3
59 NGHTTP3_VERSION: 1.18.0
60 # renovate: datasource=github-tags depName=ngtcp2/ngtcp2
61 NGTCP2_VERSION: 1.25.0
62 # renovate: datasource=github-tags depName=nghttp2/nghttp2
63 NGHTTP2_VERSION: 1.70.0
64 # manually bumped (repo not offering tagged releases)
65 H2O_VERSION: 11b0cfa2771e3ccad4a852e72473e4e278ab1de7 # 2026-05-28
66 H2O_SHA256: 5ae1bd7b09970d7d49c41fa68193e24da04c2a7ac5581fbe2affc79200b0721f
68jobs:
69 build-cache:
70 name: 'Build caches ${{ matrix.image }}'
71 runs-on: ${{ matrix.image }}
72 strategy:
73 matrix:
74 image: [ubuntu-26.04, ubuntu-26.04-arm]
75 steps:
76 - name: 'cache awslc'
77 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
78 id: cache1-awslc
79 env:
80 cache-name: cache1-awslc
81 with:
82 path: ~/pkg/awslc
83 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.AWSLC_VERSION }}-${{ runner.arch }}
85 - name: 'cache boringssl'
86 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
87 id: cache1-boringssl
88 env:
89 cache-name: cache1-boringssl
90 with:
91 path: ~/pkg/boringssl
92 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.BORINGSSL_VERSION }}-${{ runner.arch }}
94 - name: 'cache nettle'
95 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
96 id: cache1-nettle
97 env:
98 cache-name: cache1-nettle
99 with:
100 path: ~/pkg/nettle
101 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NETTLE_VERSION }}-${{ runner.arch }}
103 - name: 'cache gnutls'
104 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
105 id: cache1-gnutls
106 env:
107 cache-name: cache1-gnutls
108 with:
109 path: ~/pkg/gnutls
110 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.GNUTLS_VERSION }}-${{ env.NETTLE_VERSION }}-${{ runner.arch }}
112 - name: 'cache libressl'
113 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
114 id: cache1-libressl
115 env:
116 cache-name: cache1-libressl
117 with:
118 path: ~/pkg/libressl
119 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.LIBRESSL_VERSION }}-${{ runner.arch }}
121 - name: 'cache openssl'
122 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
123 id: cache2-openssl-no-deprecated
124 env:
125 cache-name: cache2-openssl-no-deprecated
126 with:
127 path: ~/pkg/openssl
128 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.OPENSSL_VERSION }}-${{ runner.arch }}
130 - name: 'cache openssl-prev'
131 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
132 id: cache2-openssl-prev
133 env:
134 cache-name: cache2-openssl-prev
135 with:
136 path: ~/pkg/openssl-prev
137 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.OPENSSL_PREV_VERSION }}-${{ runner.arch }}
139 - name: 'cache wolfssl'
140 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
141 id: cache1-wolfssl
142 env:
143 cache-name: cache1-wolfssl
144 with:
145 path: ~/pkg/wolfssl
146 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.WOLFSSL_VERSION }}-${{ runner.arch }}
148 - name: 'cache nghttp3'
149 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
150 id: cache1-nghttp3
151 env:
152 cache-name: cache1-nghttp3
153 with:
154 path: ~/pkg/nghttp3
155 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGHTTP3_VERSION }}-${{ runner.arch }}
157 - name: 'cache ngtcp2'
158 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
159 id: cache1-ngtcp2
160 env:
161 cache-name: cache1-ngtcp2
162 with:
163 path: ~/pkg/ngtcp2
164 key: "${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGTCP2_VERSION }}-${{ env.OPENSSL_VERSION }}-\
165 ${{ env.LIBRESSL_VERSION }}-${{ env.AWSLC_VERSION }}-${{ env.NETTLE_VERSION }}-${{ env.GNUTLS_VERSION }}-${{ env.WOLFSSL_VERSION }}-${{ runner.arch }}"
167 - name: 'cache ngtcp2 boringssl'
168 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
169 id: cache1-ngtcp2-boringssl
170 env:
171 cache-name: cache1-ngtcp2-boringssl
172 with:
173 path: ~/pkg/ngtcp2-boringssl
174 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGTCP2_VERSION }}-${{ env.BORINGSSL_VERSION }}-${{ runner.arch }}
176 - name: 'cache ngtcp2 openssl-prev'
177 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
178 id: cache1-ngtcp2-openssl-prev
179 env:
180 cache-name: cache1-ngtcp2-openssl-prev
181 with:
182 path: ~/pkg/ngtcp2-openssl-prev
183 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGTCP2_VERSION }}-${{ env.OPENSSL_PREV_VERSION }}-${{ runner.arch }}
185 - name: 'cache nghttp2'
186 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
187 id: cache1-nghttp2
188 env:
189 cache-name: cache1-nghttp2
190 with:
191 path: ~/pkg/nghttp2
192 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGHTTP2_VERSION }}-${{ env.AWSLC_VERSION }}-${{ env.NGTCP2_VERSION }}-${{ env.NGHTTP3_VERSION }}-${{ runner.arch }}
194 - name: 'cache h2o'
195 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
196 id: cache1-h2o
197 env:
198 cache-name: cache1-h2o
199 with:
200 path: ~/pkg/h2o
201 key: "${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.H2O_VERSION }}-${{ env.OPENSSL_PREV_VERSION }}-${{ runner.arch }}"
203 - id: settings
204 if: >-
205 ${{ !steps.cache1-awslc.outputs.cache-hit ||
206 !steps.cache1-boringssl.outputs.cache-hit ||
207 !steps.cache1-nettle.outputs.cache-hit ||
208 !steps.cache1-gnutls.outputs.cache-hit ||
209 !steps.cache1-libressl.outputs.cache-hit ||
210 !steps.cache2-openssl-no-deprecated.outputs.cache-hit ||
211 !steps.cache2-openssl-prev.outputs.cache-hit ||
212 !steps.cache1-wolfssl.outputs.cache-hit ||
213 !steps.cache1-nghttp3.outputs.cache-hit ||
214 !steps.cache1-ngtcp2-boringssl.outputs.cache-hit ||
215 !steps.cache1-ngtcp2-openssl-prev.outputs.cache-hit ||
216 !steps.cache1-ngtcp2.outputs.cache-hit ||
217 !steps.cache1-nghttp2.outputs.cache-hit ||
218 !steps.cache1-h2o.outputs.cache-hit }}
220 run: echo 'needs-build=true' >> "$GITHUB_OUTPUT"
222 - name: 'install build prereqs'
223 if: ${{ steps.settings.outputs.needs-build }}
224 timeout-minutes: 2
225 uses: $/.github/actions/pkg-install
226 with:
227 apt: >-
228 libtool autoconf automake pkgconf
229 libbrotli-dev libzstd-dev zlib1g-dev
230 libev-dev
231 libuv1-dev
232 libc-ares-dev
233 libp11-kit-dev autopoint bison gperf gtk-doc-tools libtasn1-bin
235 - name: 'build awslc'
236 if: ${{ !steps.cache1-awslc.outputs.cache-hit }}
237 run: |
238 cd ~
239 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
240 --location --proto-redir =https "https://github.com/awslabs/aws-lc/archive/refs/tags/v${AWSLC_VERSION}.tar.gz" --output pkg.bin
241 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
242 cd "aws-lc-${AWSLC_VERSION}"
243 cmake -B . -G Ninja -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DBUILD_TOOL=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/awslc
244 cmake --build .
245 cmake --install .
247 - name: 'build boringssl'
248 if: ${{ !steps.cache1-boringssl.outputs.cache-hit }}
249 run: |
250 cd ~
251 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
252 --location --proto-redir =https "https://github.com/google/boringssl/releases/download/${BORINGSSL_VERSION}/boringssl-${BORINGSSL_VERSION}.tar.gz" --output pkg.bin
253 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
254 cd "boringssl-${BORINGSSL_VERSION}"
255 cmake -B . -G Ninja -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/boringssl
256 cmake --build .
257 cmake --install .
259 - name: 'build nettle'
260 if: ${{ !steps.cache1-nettle.outputs.cache-hit }}
261 run: |
262 cd ~
263 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
264 "https://ftp.gnu.org/gnu/nettle/nettle-${NETTLE_VERSION}.tar.gz" --output pkg.bin
265 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
266 cd "nettle-${NETTLE_VERSION}"
267 autoreconf -fi
268 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/nettle \
269 --disable-static --disable-openssl --disable-documentation
270 make install
272 - name: 'build gnutls'
273 if: ${{ !steps.cache1-gnutls.outputs.cache-hit }}
274 run: |
275 cd ~
276 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
277 "https://www.gnupg.org/ftp/gcrypt/gnutls/v${GNUTLS_VERSION%.*}/gnutls-${GNUTLS_VERSION}.tar.xz" --output pkg.bin
278 sha256sum pkg.bin && tar -xJf pkg.bin && rm -f pkg.bin
279 cd "gnutls-${GNUTLS_VERSION}"
280 autoreconf -fi
281 # required: libp11-kit-dev libev-dev autopoint bison gperf gtk-doc-tools libtasn1-bin
282 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/gnutls \
283 PKG_CONFIG_PATH=/home/runner/pkg/nettle/lib/pkgconfig \
284 LDFLAGS=-Wl,-rpath,/home/runner/pkg/nettle/lib \
285 --with-included-libtasn1 --with-included-unistring \
286 --disable-doc --disable-tests --disable-tools
287 make install
289 - name: 'build libressl'
290 if: ${{ !steps.cache1-libressl.outputs.cache-hit }}
291 run: |
292 cd ~
293 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
294 "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz" --output pkg.bin
295 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
296 cd "libressl-${LIBRESSL_VERSION}"
297 cmake -B . -G Ninja -DLIBRESSL_APPS=OFF -DLIBRESSL_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/libressl
298 cmake --build .
299 cmake --install .
301 - name: 'build openssl'
302 if: ${{ !steps.cache2-openssl-no-deprecated.outputs.cache-hit }}
303 run: |
304 cd ~
305 git clone --quiet --depth 1 --branch "openssl-${OPENSSL_VERSION}" https://github.com/openssl/openssl
306 cd openssl
307 # Prefer clang to avoid test 2500-2503 failing valgrind with gcc-15/16 arm64 non-debug OpenSSL 3/4 builds
308 CC=clang ./config --prefix=/home/runner/pkg/openssl --libdir=lib no-makedepend no-apps no-docs no-tests no-deprecated
309 make
310 make -j1 install_sw
312 - name: 'build openssl-prev'
313 if: ${{ !steps.cache2-openssl-prev.outputs.cache-hit }}
314 run: |
315 cd ~
316 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
317 --location --proto-redir =https "https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_PREV_VERSION}/openssl-${OPENSSL_PREV_VERSION}.tar.gz" --output pkg.bin
318 sha256sum pkg.bin && tar -xzf pkg.bin && rm -f pkg.bin
319 cd "openssl-${OPENSSL_PREV_VERSION}"
320 # Prefer clang to avoid test 2500-2503 failing valgrind with gcc-15/16 arm64 non-debug OpenSSL 3/4 builds
321 CC=clang ./config --prefix=/home/runner/pkg/openssl-prev --libdir=lib no-makedepend no-apps no-docs no-tests
322 make
323 make -j1 install_sw
325 - name: 'build wolfssl'
326 if: ${{ !steps.cache1-wolfssl.outputs.cache-hit }}
327 run: |
328 cd ~
329 git clone --quiet --depth 1 --branch "v${WOLFSSL_VERSION}-stable" https://github.com/wolfSSL/wolfssl
330 cd wolfssl
331 ./autogen.sh
332 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/wolfssl --enable-all --enable-quic \
333 --disable-benchmark --disable-crypttests --disable-examples
334 make
335 make install
337 - name: 'build nghttp3'
338 if: ${{ !steps.cache1-nghttp3.outputs.cache-hit }}
339 run: |
340 cd ~
341 git clone --quiet --depth 1 --branch "v${NGHTTP3_VERSION}" https://github.com/ngtcp2/nghttp3
342 cd nghttp3
343 git submodule update --init --depth 1
344 autoreconf -fi
345 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/nghttp3 --enable-lib-only
346 make
347 make install
349 - name: 'build ngtcp2'
350 if: ${{ !steps.cache1-ngtcp2.outputs.cache-hit }}
351 # building twice to get crypto libs for ossl, libressl and awslc installed
352 run: |
353 cd ~
354 git clone --quiet --depth 1 --branch "v${NGTCP2_VERSION}" https://github.com/ngtcp2/ngtcp2
355 cd ngtcp2
356 autoreconf -fi
357 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/ngtcp2 --enable-lib-only \
358 PKG_CONFIG_PATH=/home/runner/pkg/libressl/lib/pkgconfig \
359 --with-openssl
360 make install
361 make clean
362 export PKG_CONFIG_PATH=/home/runner/pkg/openssl/lib/pkgconfig
363 PKG_CONFIG_PATH+=:/home/runner/pkg/nettle/lib/pkgconfig
364 PKG_CONFIG_PATH+=:/home/runner/pkg/gnutls/lib/pkgconfig
365 PKG_CONFIG_PATH+=:/home/runner/pkg/wolfssl/lib/pkgconfig
366 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/ngtcp2 --enable-lib-only \
367 --with-openssl --with-gnutls --with-wolfssl --with-boringssl \
368 BORINGSSL_LIBS='-L/home/runner/pkg/awslc/lib -lssl -lcrypto' \
369 BORINGSSL_CFLAGS='-I/home/runner/pkg/awslc/include'
370 make install
372 - name: 'build ngtcp2 openssl-prev'
373 if: ${{ !steps.cache1-ngtcp2-openssl-prev.outputs.cache-hit }}
374 run: |
375 cd ~
376 git clone --quiet --depth 1 --branch "v${NGTCP2_VERSION}" https://github.com/ngtcp2/ngtcp2 ngtcp2-openssl-prev
377 cd ngtcp2-openssl-prev
378 autoreconf -fi
379 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/ngtcp2-openssl-prev --enable-lib-only \
380 PKG_CONFIG_PATH=/home/runner/pkg/openssl-prev/lib/pkgconfig \
381 --with-openssl
382 make install
384 - name: 'build ngtcp2 boringssl'
385 if: ${{ !steps.cache1-ngtcp2-boringssl.outputs.cache-hit }}
386 run: |
387 cd ~
388 git clone --quiet --depth 1 --branch "v${NGTCP2_VERSION}" https://github.com/ngtcp2/ngtcp2 ngtcp2-boringssl
389 cd ngtcp2-boringssl
390 autoreconf -fi
391 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/ngtcp2-boringssl --enable-lib-only \
392 --with-openssl=no --with-boringssl \
393 BORINGSSL_LIBS='-L/home/runner/pkg/boringssl/lib -lssl -lcrypto' \
394 BORINGSSL_CFLAGS='-I/home/runner/pkg/boringssl/include'
395 make install
397 - name: 'build nghttp2'
398 if: ${{ !steps.cache1-nghttp2.outputs.cache-hit }}
399 run: |
400 cd ~
401 git clone --quiet --depth 1 --branch "v${NGHTTP2_VERSION}" https://github.com/nghttp2/nghttp2
402 cd nghttp2
403 git submodule update --init --depth 1
404 autoreconf -fi
405 # required (for nghttpx application): libc-ares-dev libev-dev zlib1g-dev
406 # optional (for nghttpx application): libbrotli-dev
407 export PKG_CONFIG_PATH=/home/runner/pkg/awslc/lib/pkgconfig
408 PKG_CONFIG_PATH+=:/home/runner/pkg/nghttp3/lib/pkgconfig
409 PKG_CONFIG_PATH+=:/home/runner/pkg/ngtcp2/lib/pkgconfig
410 ./configure --disable-dependency-tracking --prefix=/home/runner/pkg/nghttp2 --enable-app --enable-http3 \
411 LDFLAGS=-Wl,-rpath,/home/runner/pkg/awslc/lib \
412 --with-libbrotlienc --with-libbrotlidec
413 make install
415 - name: 'build h2o'
416 if: ${{ !steps.cache1-h2o.outputs.cache-hit }}
417 run: |
418 cd ~
419 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 6 --retry-connrefused \
420 --location --proto-redir =https "https://github.com/h2o/h2o/archive/${H2O_VERSION}.tar.gz" --output pkg.bin
421 sha256sum pkg.bin | tee /dev/stderr | grep -qwF -- "${H2O_SHA256}" && tar -xzf pkg.bin && rm -f pkg.bin
422 cd "h2o-${H2O_VERSION}"
423 cmake -B . -G Ninja -DWITHOUT_LIBS=ON -DOPENSSL_ROOT_DIR=/home/runner/pkg/openssl-prev -DCMAKE_INSTALL_PREFIX=/home/runner/pkg/h2o
424 cmake --build .
425 cmake --install .
427 linux:
428 name: ${{ matrix.build.generate && 'CM' || 'AM' }} ${{ matrix.build.name }}
429 needs: build-cache
430 runs-on: ${{ matrix.build.image || 'ubuntu-26.04' }}
431 timeout-minutes: 10
432 env:
433 CURL_TRACE_PKG_CONFIG: '1'
434 MATRIX_BUILD: ${{ matrix.build.generate && 'cmake' || 'autotools' }}
435 strategy:
436 fail-fast: false
437 matrix:
438 build:
439 - name: 'awslc'
440 install_steps: skipall
441 LDFLAGS: -Wl,-rpath,/home/runner/pkg/awslc/lib
442 PKG_CONFIG_PATH: /home/runner/pkg/awslc/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/ngtcp2/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
443 # Intentionally using bare '--with-ngtcp2' + 'PKG_CONFIG_PATH' to test this way of configuration, in addition to '--with-ngtcp2=<path>' in other jobs.
444 configure: >-
445 --with-openssl=/home/runner/pkg/awslc --with-ngtcp2 --enable-ssls-export
447 - name: 'awslc'
448 PKG_CONFIG_PATH: /home/runner/pkg/awslc/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/ngtcp2/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
449 generate: >-
450 -DOPENSSL_ROOT_DIR=/home/runner/pkg/awslc -DUSE_NGTCP2=ON -DBUILD_SHARED_LIBS=OFF
451 -DCMAKE_UNITY_BUILD=ON -DCURL_DROP_UNUSED=ON -DCURL_DISABLE_HTTPSIG=OFF
453 - name: 'boringssl'
454 image: ubuntu-26.04-arm
455 install_steps: skipall
456 LDFLAGS: -Wl,-rpath,/home/runner/pkg/boringssl/lib
457 PKG_CONFIG_PATH: /home/runner/pkg/boringssl/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
458 configure: >-
459 --with-openssl=/home/runner/pkg/boringssl --with-ngtcp2=/home/runner/pkg/ngtcp2-boringssl --enable-ssls-export
461 - name: 'boringssl'
462 image: ubuntu-26.04-arm
463 PKG_CONFIG_PATH: "\
464 /home/runner/pkg/boringssl/lib/pkgconfig:\
465 /home/runner/pkg/nghttp3/lib/pkgconfig:\
466 /home/runner/pkg/ngtcp2-boringssl/lib/pkgconfig:\
467 /home/runner/pkg/nghttp2/lib/pkgconfig"
468 generate: >-
469 -DOPENSSL_ROOT_DIR=/home/runner/pkg/boringssl -DUSE_NGTCP2=ON -DBUILD_SHARED_LIBS=OFF
470 -DCMAKE_UNITY_BUILD=ON -DCURL_DISABLE_HTTPSIG=OFF
472 - name: 'gnutls'
473 install_packages: libp11-kit-dev libssh-dev
474 install_steps: skipall
475 LDFLAGS: -Wl,-rpath,/home/runner/pkg/gnutls/lib -Wl,-rpath,/home/runner/pkg/nettle/lib -Wl,-rpath,/home/runner/pkg/ngtcp2/lib
476 PKG_CONFIG_PATH: /home/runner/pkg/nettle/lib/pkgconfig:/home/runner/pkg/gnutls/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
477 configure: >-
478 --with-gnutls=/home/runner/pkg/gnutls --with-ngtcp2=/home/runner/pkg/ngtcp2 --with-libssh --enable-ssls-export --enable-httpsig
480 - name: 'gnutls'
481 tflags: '--min=1900'
482 install_packages: libp11-kit-dev libssh-dev
483 LDFLAGS: -Wl,-rpath,/home/runner/pkg/gnutls/lib
484 PKG_CONFIG_PATH: "\
485 /home/runner/pkg/nettle/lib/pkgconfig:\
486 /home/runner/pkg/gnutls/lib/pkgconfig:\
487 /home/runner/pkg/nghttp3/lib/pkgconfig:\
488 /home/runner/pkg/ngtcp2/lib/pkgconfig:\
489 /home/runner/pkg/nghttp2/lib/pkgconfig"
490 generate: >-
491 -DCURL_USE_GNUTLS=ON -DUSE_NGTCP2=ON -DCURL_USE_LIBSSH=ON
492 -DCMAKE_UNITY_BUILD=ON -DCURL_DISABLE_HTTPSIG=OFF -DCURL_ENABLE_NTLM=OFF
494 - name: 'libressl'
495 install_steps: skipall
496 LDFLAGS: -Wl,-rpath,/home/runner/pkg/libressl/lib
497 PKG_CONFIG_PATH: /home/runner/pkg/libressl/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
498 # Intentionally using '--with-ngtcp2=<path>' to test this way of configuration, in addition to bare '--with-ngtcp2' + 'PKG_CONFIG_PATH' in other jobs.
499 configure: >-
500 --with-openssl=/home/runner/pkg/libressl --with-ngtcp2=/home/runner/pkg/ngtcp2 --enable-ssls-export
501 --enable-unity
503 - name: 'libressl'
504 PKG_CONFIG_PATH: /home/runner/pkg/libressl/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/ngtcp2/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
505 generate: >-
506 -DOPENSSL_ROOT_DIR=/home/runner/pkg/libressl -DUSE_NGTCP2=ON -DCURL_DISABLE_HTTPSIG=OFF
508 - name: 'openssl'
509 tflags: '--min=1850'
510 LDFLAGS: -Wl,-rpath,/home/runner/pkg/openssl/lib
511 PKG_CONFIG_PATH: /home/runner/pkg/openssl/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
512 configure: >-
513 --with-openssl=/home/runner/pkg/openssl --with-ngtcp2=/home/runner/pkg/ngtcp2 --enable-ech --enable-ssls-export --enable-proxy-http3 --enable-httpsig
515 - name: 'openssl'
516 install_steps: skipall
517 PKG_CONFIG_PATH: /home/runner/pkg/openssl/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/ngtcp2/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
518 generate: >-
519 -DOPENSSL_ROOT_DIR=/home/runner/pkg/openssl -DUSE_NGTCP2=ON
520 -DCURL_DISABLE_LDAP=ON
521 -DUSE_ECH=ON -DUSE_PROXY_HTTP3=ON
522 -DCMAKE_UNITY_BUILD=ON
524 - name: 'openssl-prev'
525 image: ubuntu-26.04-arm
526 install_steps: skipall
527 LDFLAGS: -Wl,-rpath,/home/runner/pkg/openssl-prev/lib
528 PKG_CONFIG_PATH: "\
529 /home/runner/pkg/openssl-prev/lib/pkgconfig:\
530 /home/runner/pkg/nghttp3/lib/pkgconfig:\
531 /home/runner/pkg/nghttp2/lib/pkgconfig"
532 configure: >-
533 --with-openssl=/home/runner/pkg/openssl-prev --with-ngtcp2=/home/runner/pkg/ngtcp2-openssl-prev --enable-ssls-export
535 - name: 'openssl-prev'
536 image: ubuntu-26.04-arm
537 tflags: '--min=1875'
538 PKG_CONFIG_PATH: "\
539 /home/runner/pkg/openssl-prev/lib/pkgconfig:\
540 /home/runner/pkg/nghttp3/lib/pkgconfig:\
541 /home/runner/pkg/nghttp2/lib/pkgconfig:\
542 /home/runner/pkg/ngtcp2-openssl-prev/lib/pkgconfig"
543 generate: >-
544 -DOPENSSL_ROOT_DIR=/home/runner/pkg/openssl-prev -DUSE_NGTCP2=ON
545 -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_HTTPSIG=OFF
547 - name: 'quiche'
548 install_packages: clang
549 install_steps: skipall
550 CC: clang
551 CFLAGS: -fPIC
552 LDFLAGS: -Wl,-rpath,/home/runner/quiche/target/release -lstdc++
553 PKG_CONFIG_PATH: /home/runner/pkg/nghttp2/lib/pkgconfig
554 configure: >-
555 --with-openssl=/home/runner/quiche/boringssl
556 --with-quiche=/home/runner/quiche/target/release
557 --with-ca-fallback
558 --enable-unity
560 - name: 'quiche'
561 install_packages: clang
562 CC: clang
563 PKG_CONFIG_PATH: /home/runner/pkg/nghttp2/lib/pkgconfig:/home/runner/quiche/target/release
564 generate: >-
565 -DOPENSSL_ROOT_DIR=/home/runner/quiche/boringssl -DOPENSSL_USE_STATIC_LIBS=ON
566 -DUSE_QUICHE=ON
567 -DCURL_CA_FALLBACK=ON -DCURL_DISABLE_HTTPSIG=OFF
569 - name: 'wolfssl'
570 install_packages: libssh2-1-dev
571 install_steps: skipall
572 LDFLAGS: -Wl,-rpath,/home/runner/pkg/wolfssl/lib
573 PKG_CONFIG_PATH: /home/runner/pkg/wolfssl/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
574 configure: >-
575 --with-wolfssl=/home/runner/pkg/wolfssl --with-ngtcp2=/home/runner/pkg/ngtcp2 --enable-ech --with-libssh2 --enable-ssls-export
576 --enable-unity
578 - name: 'wolfssl'
579 install_packages: libssh2-1-dev
580 tflags: '--min=1880'
581 PKG_CONFIG_PATH: /home/runner/pkg/wolfssl/lib/pkgconfig:/home/runner/pkg/nghttp3/lib/pkgconfig:/home/runner/pkg/ngtcp2/lib/pkgconfig:/home/runner/pkg/nghttp2/lib/pkgconfig
582 generate: >-
583 -DCURL_USE_WOLFSSL=ON -DUSE_NGTCP2=ON
584 -DUSE_ECH=ON -DCURL_DISABLE_HTTPSIG=OFF
586 steps:
587 - name: 'install prereqs'
588 timeout-minutes: 2
589 uses: $/.github/actions/pkg-install
590 with:
591 apt: >-
592 libtool autoconf automake pkgconf
593 libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libidn2-0-dev libldap-dev libuv1-dev valgrind
594 ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') && 'stunnel4 ' || '' }}
595 ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') &&
596 'apache2 apache2-dev libnghttp2-dev vsftpd dante-server libev-dev' || '' }}
597 ${{ matrix.build.install_packages }}
599 - name: 'cache awslc'
600 # always restore for nghttp2/bin/nghttpx
601 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
602 id: cache1-awslc
603 env:
604 cache-name: cache1-awslc
605 with:
606 path: ~/pkg/awslc
607 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.AWSLC_VERSION }}-${{ runner.arch }}
608 fail-on-cache-miss: true
610 - name: 'cache boringssl'
611 if: ${{ matrix.build.name == 'boringssl' }}
612 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
613 id: cache1-boringssl
614 env:
615 cache-name: cache1-boringssl
616 with:
617 path: ~/pkg/boringssl
618 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.BORINGSSL_VERSION }}-${{ runner.arch }}
619 fail-on-cache-miss: true
621 - name: 'cache nettle'
622 if: ${{ matrix.build.name == 'gnutls' }}
623 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
624 id: cache1-nettle
625 env:
626 cache-name: cache1-nettle
627 with:
628 path: ~/pkg/nettle
629 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NETTLE_VERSION }}-${{ runner.arch }}
630 fail-on-cache-miss: true
632 - name: 'cache gnutls'
633 if: ${{ matrix.build.name == 'gnutls' }}
634 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
635 id: cache1-gnutls
636 env:
637 cache-name: cache1-gnutls
638 with:
639 path: ~/pkg/gnutls
640 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.GNUTLS_VERSION }}-${{ env.NETTLE_VERSION }}-${{ runner.arch }}
641 fail-on-cache-miss: true
643 - name: 'cache libressl'
644 if: ${{ matrix.build.name == 'libressl' }}
645 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
646 id: cache1-libressl
647 env:
648 cache-name: cache1-libressl
649 with:
650 path: ~/pkg/libressl
651 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.LIBRESSL_VERSION }}-${{ runner.arch }}
652 fail-on-cache-miss: true
654 - name: 'cache openssl'
655 if: ${{ matrix.build.name == 'openssl' }}
656 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
657 id: cache2-openssl-no-deprecated
658 env:
659 cache-name: cache2-openssl-no-deprecated
660 with:
661 path: ~/pkg/openssl
662 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.OPENSSL_VERSION }}-${{ runner.arch }}
663 fail-on-cache-miss: true
665 - name: 'cache openssl-prev'
666 if: ${{ matrix.build.name == 'openssl-prev' }}
667 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
668 id: cache2-openssl-prev
669 env:
670 cache-name: cache2-openssl-prev
671 with:
672 path: ~/pkg/openssl-prev
673 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.OPENSSL_PREV_VERSION }}-${{ runner.arch }}
674 fail-on-cache-miss: true
676 - name: 'cache wolfssl'
677 if: ${{ matrix.build.name == 'wolfssl' }}
678 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
679 id: cache1-wolfssl
680 env:
681 cache-name: cache1-wolfssl
682 with:
683 path: ~/pkg/wolfssl
684 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.WOLFSSL_VERSION }}-${{ runner.arch }}
685 fail-on-cache-miss: true
687 - name: 'cache nghttp3'
688 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
689 id: cache1-nghttp3
690 env:
691 cache-name: cache1-nghttp3
692 with:
693 path: ~/pkg/nghttp3
694 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGHTTP3_VERSION }}-${{ runner.arch }}
695 fail-on-cache-miss: true
697 - name: 'cache ngtcp2'
698 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
699 id: cache1-ngtcp2
700 env:
701 cache-name: cache1-ngtcp2
702 with:
703 path: ~/pkg/ngtcp2
704 key: "${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGTCP2_VERSION }}-${{ env.OPENSSL_VERSION }}-\
705 ${{ env.LIBRESSL_VERSION }}-${{ env.AWSLC_VERSION }}-${{ env.NETTLE_VERSION }}-${{ env.GNUTLS_VERSION }}-${{ env.WOLFSSL_VERSION }}-${{ runner.arch }}"
706 fail-on-cache-miss: true
708 - name: 'cache ngtcp2 boringssl'
709 if: ${{ matrix.build.name == 'boringssl' }}
710 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
711 id: cache1-ngtcp2-boringssl
712 env:
713 cache-name: cache1-ngtcp2-boringssl
714 with:
715 path: ~/pkg/ngtcp2-boringssl
716 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGTCP2_VERSION }}-${{ env.BORINGSSL_VERSION }}-${{ runner.arch }}
717 fail-on-cache-miss: true
719 - name: 'cache ngtcp2 openssl-prev'
720 if: ${{ matrix.build.name == 'openssl-prev' }}
721 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
722 id: cache1-ngtcp2-openssl-prev
723 env:
724 cache-name: cache1-ngtcp2-openssl-prev
725 with:
726 path: ~/pkg/ngtcp2-openssl-prev
727 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGTCP2_VERSION }}-${{ env.OPENSSL_PREV_VERSION }}-${{ runner.arch }}
728 fail-on-cache-miss: true
730 - name: 'cache nghttp2'
731 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
732 id: cache1-nghttp2
733 env:
734 cache-name: cache1-nghttp2
735 with:
736 path: ~/pkg/nghttp2
737 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.NGHTTP2_VERSION }}-${{ env.AWSLC_VERSION }}-${{ env.NGTCP2_VERSION }}-${{ env.NGHTTP3_VERSION }}-${{ runner.arch }}
738 fail-on-cache-miss: true
740 - name: 'cache h2o'
741 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
742 id: cache1-h2o
743 env:
744 cache-name: cache1-h2o
745 with:
746 path: ~/pkg/h2o
747 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.H2O_VERSION }}-${{ env.OPENSSL_PREV_VERSION }}-${{ runner.arch }}
748 fail-on-cache-miss: true
750 - name: 'cache quiche'
751 if: ${{ matrix.build.name == 'quiche' }}
752 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
753 id: cache1-quiche
754 env:
755 cache-name: cache1-quiche
756 with:
757 path: ~/quiche
758 key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.QUICHE_VERSION }}-${{ runner.arch }}
760 - name: 'build quiche and boringssl'
761 if: ${{ matrix.build.name == 'quiche' && !steps.cache1-quiche.outputs.cache-hit }}
762 run: |
763 cd ~
764 git clone --quiet --depth 1 --branch "${QUICHE_VERSION}" --recursive https://github.com/cloudflare/quiche
765 cd quiche
766 if [ "$(uname -m)" = 'aarch64' ]; then
767 export CARGO_PROFILE_RELEASE_OPT_LEVEL=0 # to avoid test 2500-2503 failing valgrind with arm64 non-debug quiche 0.30.0 builds
768 fi
769 cargo build --package quiche --release --features ffi,pkg-config-meta,qlog -vv
770 ln -s libquiche.so target/release/libquiche.so.0
771 cd ..
772 mkdir -p quiche/boringssl/lib
773 find quiche/target/release \( -name libcrypto.a -o -name libssl.a \) -exec ln -vnf -- '{}' quiche/boringssl/lib \;
774 find quiche/target/release/build/boring-sys-*/out/boringssl -maxdepth 1 \( -name include \) -exec ln -vsf -- '../../{}' quiche/boringssl \;
775 # Reduce cached blob size
776 rm -rf quiche/target/release/build/boring-sys-*/out/build/CMakeFiles
777 rm -rf quiche/target/release/deps
778 du -t 4MB quiche
780 # include dir: /home/runner/quiche/boringssl/include
781 # lib dir: /home/runner/quiche/boringssl/lib
783 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
784 with:
785 persist-credentials: false
787 - name: 'autoreconf'
788 if: ${{ matrix.build.configure }}
789 run: autoreconf -fi
791 - name: 'configure'
792 env:
793 CC: '${{ matrix.build.CC }}'
794 CFLAGS: '${{ matrix.build.CFLAGS }}'
795 LDFLAGS: '${{ matrix.build.LDFLAGS }}'
796 MATRIX_NAME: '${{ matrix.build.name }}'
797 MATRIX_CONFIGURE: '${{ matrix.build.configure }}'
798 MATRIX_GENERATE: '${{ matrix.build.generate }}'
799 MATRIX_PKG_CONFIG_PATH: '${{ matrix.build.PKG_CONFIG_PATH }}'
800 run: |
801 [ -n "${MATRIX_PKG_CONFIG_PATH}" ] && export PKG_CONFIG_PATH="${MATRIX_PKG_CONFIG_PATH}"
802 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
803 [[ "${MATRIX_NAME}" = *'quiche'* ]] && sudo apt-get -o Dpkg::Use-Pty=0 purge libssl-dev
804 [[ "${MATRIX_NAME}" = *'boringssl'* ]] && options=" -DBORINGSSL_VERSION=${BORINGSSL_VERSION}"
805 cmake -B bld -G Ninja \
806 -DCMAKE_C_COMPILER_TARGET="$(uname -m)-unknown-linux-gnu" -DBUILD_STATIC_LIBS=ON \
807 -DCURL_WERROR=ON -DENABLE_DEBUG=ON \
808 -DCURL_USE_LIBUV=ON \
809 -DTEST_NGHTTPX=/home/runner/pkg/nghttp2/bin/nghttpx \
810 -DH2O=/home/runner/pkg/h2o/bin/h2o \
811 -DHTTPD_NGHTTPX=/home/runner/pkg/nghttp2/bin/nghttpx \
812 ${MATRIX_GENERATE} ${options}
813 else
814 [[ "${MATRIX_NAME}" = *'boringssl'* ]] && export CPPFLAGS="-DCURL_BORINGSSL_VERSION=\\\"${BORINGSSL_VERSION}\\\""
815 mkdir bld && cd bld && ../configure --enable-warnings --enable-werror --enable-debug --disable-static \
816 --disable-dependency-tracking --enable-option-checking=fatal \
817 --with-libuv \
818 --with-test-h2o=/home/runner/pkg/h2o/bin/h2o \
819 --with-test-nghttpx=/home/runner/pkg/nghttp2/bin/nghttpx \
820 ${MATRIX_CONFIGURE}
821 fi
823 - name: 'configure log'
824 if: ${{ !cancelled() }}
825 run: cat bld/config.log bld/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
827 - name: 'curl_config.h'
828 run: |
829 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
830 grep -F '#define' bld/lib/curl_config.h | sort || true
832 - name: 'libcurl.pc, curl-config'
833 run: |
834 for f in libcurl.pc curl-config; do
835 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
836 done
838 - name: 'test configs'
839 run: grep -H -v '^#' bld/tests/config bld/tests/http/config.ini || true
841 - name: 'build'
842 run: |
843 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
844 cmake --build bld --verbose
845 else
846 make -C bld V=1
847 fi
849 - name: 'curl -V'
850 run: |
851 find . -type f \( -name curl -o -name '*.so.*' -o -name '*.a' \) -print0 | sort -z | xargs -0 file --
852 find . -type f \( -name curl -o -name '*.so.*' -o -name '*.a' \) -print0 | sort -z | xargs -0 stat -c '%10s bytes: %n' --
853 bld/src/curl --disable -V
855 - name: 'build tests'
856 if: ${{ !contains(matrix.build.install_steps, 'skipall') }}
857 run: |
858 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
859 cmake --build bld --verbose --target testdeps
860 else
861 make -C bld V=1 -C tests
862 fi
864 - name: 'run tests'
865 if: ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') }}
866 env:
867 TFLAGS: '${{ matrix.build.tflags }}'
868 run: |
869 TFLAGS+=' -n'
870 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
871 cmake --build bld --verbose --target test-ci
872 else
873 make -C bld V=1 test-ci
874 fi
876 - name: 'run tests (valgrind)'
877 if: ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') }}
878 run: |
879 export TFLAGS='-j6 --min=4 HTTP/3'
880 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
881 cmake --build bld --verbose --target test-ci
882 else
883 make -C bld V=1 test-ci
884 fi
886 - name: 'install pytest prereqs'
887 if: ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') }}
888 uses: $/.github/actions/pkg-install
889 with:
890 pip: -r tests/http/requirements.txt
892 - name: 'run pytest (event based)'
893 if: ${{ !contains(matrix.build.install_steps, 'skipall') && !contains(matrix.build.install_steps, 'skiprun') }}
894 env:
895 CURL_TEST_EVENT: 1
896 PYTEST_ADDOPTS: '--color=yes'
897 PYTEST_XDIST_AUTO_NUM_WORKERS: 4
898 run: |
899 source ~/venv/bin/activate
900 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
901 cmake --build bld --verbose --target curl-pytest-ci
902 else
903 make -C bld V=1 pytest-ci
904 fi
Diagnostics4 git calls · 218 ms
CallStatusSizeTime0218 ms
discover200152 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 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 · hit3 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=3 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 · hit4 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=4 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
fetch2007.2 KiB211 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=211 git.response.bytes=7331 git.response.cache=MISS git.response.duration_ms=211 git.fetch.wants=0c7880f98f149197816f2f4a7cafbbee1d1b2cc5 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=7331 git.pkt.payload.max=7310 git.sideband.band1.bytes=7309 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
- a5e136a04c9d18aa
- Request
- 708e8d2f…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format