master
1# Copyright (C) Viktor Szakats
2#
3# SPDX-License-Identifier: curl
5name: 'Windows'
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 CURL_CI: github
37 CURL_TEST_MIN: 1760
38 CURL_TEST_SSH_KEYALGO: ed25519
39 DO_NOT_TRACK: '1'
40 # https://github.com/PowerShell/Win32-OpenSSH/tags
41 OPENSSH_WINDOWS_VERSION: 10.4.0.0p1-Preview # manually bumped
42 OPENSSH_WINDOWS_SHA256_ARM64: d2b1928225479fec9e0c938f527fdb5ed676446cca1bbcc5af84aca1f272842e
43 OPENSSH_WINDOWS_SHA256_WIN64: b67ff8becd203502190ec42ac7787c24c2cd3325ed7700485fe7a1c83d2a7957
44 # renovate: datasource=github-tags depName=mtrojnar/stunnel versioning=semver-coerced extractVersion=^stunnel-(?<version>.+)$
45 STUNNEL_VERSION: 5.82
47jobs:
48 build-cache:
49 name: 'Build caches'
50 runs-on: ${{ matrix.image }}
51 strategy:
52 matrix:
53 image: [windows-11-arm, windows-2022] # Cannot share cache between arm and intel: https://github.com/actions/cache/issues/1622
54 steps:
55 - name: 'cache test prereqs (stunnel)'
56 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
57 id: cache-stunnel
58 with:
59 path: C:\my-stunnel
60 key: ${{ runner.os }}-stunnel-${{ env.STUNNEL_VERSION }}-amd64
61 lookup-only: true # requires cache read permission
63 - name: 'install test prereqs (stunnel)'
64 if: ${{ !steps.cache-stunnel.outputs.cache-hit }}
65 timeout-minutes: 2
66 shell: bash
67 run: |
68 cd /c && mkdir my-stunnel && cd my-stunnel
69 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 240 --retry 3 --retry-connrefused \
70 "https://www.stunnel.org/archive/5.x/stunnel-${STUNNEL_VERSION}-win64-installer.exe" --output pkg.bin
71 sha256sum pkg.bin && 7z x -y pkg.bin >/dev/null && rm -f pkg.bin && ls -l && bin/tstunnel -version
73 cygwin:
74 name: "cygwin, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} ${{ matrix.platform }} ${{ matrix.name }}"
75 needs: build-cache
76 runs-on: windows-2022
77 timeout-minutes: 10
78 cache-mode: read
79 defaults:
80 run:
81 shell: D:\cygwin\bin\bash.exe '{0}' # zizmor: ignore[misfeature]
82 env:
83 CURL_TEST_MIN: 1830
84 LDFLAGS: -s
85 MAKEFLAGS: -j 5
86 SHELLOPTS: 'igncr'
87 MATRIX_BUILD: '${{ matrix.build }}'
88 strategy:
89 matrix:
90 include:
91 - { name: 'openssl R',
92 build: 'autotools', platform: 'x86_64', tflags: 'skiprun',
93 config: '--with-openssl',
94 install: 'libssl-devel libssh2-devel' }
95 - { name: 'openssl',
96 build: 'cmake', platform: 'x86_64', tflags: '',
97 config: '-DENABLE_DEBUG=ON -DCURL_USE_OPENSSL=ON -DENABLE_THREADED_RESOLVER=OFF -DCURL_DISABLE_HTTPSIG=OFF',
98 install: 'libssl-devel libssh2-devel python3' }
99 fail-fast: false
100 steps:
101 - uses: cygwin/cygwin-install-action@3f0a3f9f988f7e96b8c18098ae05eaec175f5b52 # v6.0.2
102 with:
103 platform: ${{ matrix.platform }}
104 work-vol: 'D:'
105 # https://cygwin.com/mirrors.html
106 # Main mirror status: https://archlinux.org/mirrors/kernel.org/
107 # https://cygwin.com/packages/
108 packages: >-
109 ${{ matrix.build == 'autotools' && 'autoconf automake libtool make' || 'cmake ninja' }}
110 gcc-core binutils perl pkgconf
111 openssh
112 libpsl-devel
113 zlib-devel
114 libbrotli-devel
115 libzstd-devel
116 libnghttp2-devel
117 ${{ matrix.install }}
119 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
120 with:
121 persist-credentials: false
123 - name: 'autoreconf'
124 if: ${{ matrix.build == 'autotools' }}
125 timeout-minutes: 2
126 run: |
127 PATH=/usr/bin
128 autoreconf -fi
130 - name: 'configure'
131 timeout-minutes: 5
132 env:
133 MATRIX_CONFIG: '${{ matrix.config }}'
134 run: |
135 PATH=/usr/bin
136 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
137 cmake -B bld -G Ninja -D_CURL_PREFILL=ON ${options} \
138 -DCMAKE_INSTALL_PREFIX="$HOME"/curl-install \
139 -DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=30 \
140 -DCURL_WERROR=ON \
141 ${MATRIX_CONFIG}
142 else
143 mkdir bld && cd bld && ../configure --prefix="$HOME"/curl-install --enable-unity --enable-warnings --enable-werror --disable-static \
144 --disable-dependency-tracking --enable-option-checking=fatal \
145 --with-libssh2 \
146 ${MATRIX_CONFIG}
147 fi
149 - name: 'configure log'
150 if: ${{ !cancelled() }}
151 run: |
152 PATH=/usr/bin
153 cat bld/config.log bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
155 - name: 'curl_config.h'
156 run: |
157 PATH=/usr/bin
158 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
159 grep -F '#define' bld/lib/curl_config.h | sort || true
161 - name: 'libcurl.pc, curl-config'
162 run: |
163 for f in libcurl.pc curl-config; do
164 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
165 done
166 pccritic --version
167 pccritic --min-score 100 bld/libcurl.pc
169 - name: 'build'
170 timeout-minutes: 10
171 run: |
172 PATH=/usr/bin
173 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
174 cmake --build bld --verbose
175 cmake --install bld --verbose
176 else
177 make -C bld V=1 install
178 fi
180 - name: 'curl -V'
181 timeout-minutes: 1
182 run: |
183 PATH=/usr/bin
184 find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 file --
185 find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 stat -c '%10s bytes: %n' --
186 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
187 PATH="$PWD/bld/lib:$PATH"
188 fi
189 bld/src/curl.exe --disable --version
191 - name: 'build tests'
192 if: ${{ matrix.tflags != 'skipall' }}
193 timeout-minutes: 15
194 run: |
195 PATH=/usr/bin
196 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
197 cmake --build bld --verbose --target testdeps
198 else
199 make -C bld V=1 -C tests
200 fi
202 - name: 'cache test prereqs (stunnel)'
203 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
204 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
205 id: cache-stunnel
206 with:
207 path: C:\my-stunnel
208 key: ${{ runner.os }}-stunnel-${{ env.STUNNEL_VERSION }}-amd64
209 fail-on-cache-miss: true
211 - name: 'run tests'
212 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
213 timeout-minutes: 15
214 env:
215 TFLAGS: '${{ matrix.tflags }}'
216 run: |
217 PATH=/usr/bin:/cygdrive/c/my-stunnel/bin
218 TFLAGS="-j8 ${TFLAGS}"
219 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
220 PATH="$PWD/bld/lib:$PATH"
221 cmake --build bld --verbose --target test-ci
222 else
223 make -C bld V=1 test-ci
224 fi
226 - name: 'build examples'
227 if: ${{ matrix.build == 'cmake' }}
228 timeout-minutes: 5
229 run: |
230 PATH=/usr/bin
231 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
232 cmake --build bld --verbose --target curl-examples-build
233 else
234 make -C bld V=1 examples
235 fi
237 - name: 'disk space used'
238 run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 250KB bld
240 msys2: # both msys and mingw-w64
241 name: "${{ matrix.sys == 'msys' && 'msys2' || 'mingw' }}, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} ${{ matrix.env }} ${{ matrix.name }} ${{ matrix.test }}"
242 needs: build-cache
243 runs-on: ${{ matrix.image || 'windows-2022' }}
244 timeout-minutes: ${{ contains(matrix.tflags, '-t') && 14 || 10 }}
245 defaults:
246 run:
247 shell: msys2 {0} # zizmor: ignore[misfeature]
248 env:
249 LDFLAGS: -s
250 MAKEFLAGS: -j 5
251 MATRIX_BUILD: '${{ matrix.build }}'
252 MATRIX_ENV: '${{ matrix.env }}'
253 MATRIX_OPENSSH: '${{ matrix.openssh }}'
254 MATRIX_SYS: '${{ matrix.sys }}'
255 MATRIX_TEST: '${{ matrix.test }}'
256 strategy:
257 matrix:
258 include:
259 # MSYS
260 - { name: '!proxy',
261 build: 'cmake' , sys: 'msys' , env: 'x86_64' , tflags: 'skiprun',
262 config: '-DENABLE_DEBUG=ON -DENABLE_THREADED_RESOLVER=OFF -DCURL_DISABLE_PROXY=ON' }
263 - { name: 'default R',
264 build: 'autotools', sys: 'msys' , env: 'x86_64' , tflags: '',
265 config: '--with-openssl --enable-httpsig',
266 install: 'diffutils' } # for tests
267 # MinGW
268 - { name: 'default',
269 build: 'autotools', sys: 'clang64' , env: 'clang-x86_64' , tflags: 'skiprun',
270 config: '--enable-debug --with-openssl --disable-threaded-resolver --enable-static --without-zlib' }
271 - { name: 'wolfssl c-ares U',
272 build: 'autotools', sys: 'ucrt64' , env: 'ucrt-x86_64' , tflags: '',
273 config: '--enable-debug --with-wolfssl --enable-windows-unicode --enable-ares --enable-static --disable-shared --enable-ca-native',
274 install: 'mingw-w64-ucrt-x86_64-wolfssl' }
275 - { name: 'schannel c-ares U', type: 'Debug',
276 build: 'cmake' , sys: 'clang64' , env: 'clang-x86_64' , tflags: '--min=1850',
277 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=ON -DENABLE_ARES=ON -DCURL_DROP_UNUSED=ON',
278 install: 'mingw-w64-clang-x86_64-python' } # for dict and telnet tests
279 # MinGW torture
280 - { name: 'schannel U torture 1', type: 'Debug',
281 build: 'cmake' , sys: 'ucrt64' , env: 'ucrt-x86_64' , tflags: '-t --shallow=13 --subset=0/2',
282 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=ON -DENABLE_ARES=ON' }
283 - { name: 'schannel U torture 2', type: 'Debug',
284 build: 'cmake' , sys: 'ucrt64' , env: 'ucrt-x86_64' , tflags: '-t --shallow=13 --subset=1/2',
285 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=ON -DENABLE_ARES=ON' }
286 # WARNING: libssh uses hard-coded world-writable paths (C:ProgramData/, /etc/..., ~/.ssh/)
287 # to read its configuration from, making it vulnerable to attacks on
288 # Windows. Do not use this component till there is a fix for these.
289 # Holds true after CVE-2025-14821 mitigations in 0.12.0.
290 # https://github.com/curl/curl-for-win/blob/471a065705a16c61a343b15d3e4ef195e2df2f9e/libssh.sh#L6-L94
291 - { name: 'gnutls libssh', type: 'Debug', openssh: 'OpenSSH-Windows',
292 build: 'cmake' , sys: 'clang64' , env: 'clang-x86_64' , tflags: '',
293 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_GNUTLS=ON -DENABLE_UNICODE=OFF -DUSE_NGTCP2=ON -DCURL_USE_LIBSSH2=OFF -DCURL_USE_LIBSSH=ON',
294 install: 'mingw-w64-clang-x86_64-gnutls mingw-w64-clang-x86_64-libssh unzip' }
295 - { name: 'schannel R', type: 'Release', image: 'windows-11-arm',
296 build: 'cmake' , sys: 'clangarm64', env: 'clang-aarch64', tflags: 'skiprun',
297 config: '-DENABLE_DEBUG=OFF -DBUILD_SHARED_LIBS=ON -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=ON -DCURL_DROP_UNUSED=ON' }
298 - { name: 'openssl', type: 'Debug', chkprefill: '_chkprefill',
299 build: 'cmake' , sys: 'clang64' , env: 'clang-x86_64' , tflags: 'skiprun',
300 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_OPENSSL=ON -DENABLE_UNICODE=OFF -DUSE_NGTCP2=ON -DUSE_PROXY_HTTP3=ON' }
301 - { name: 'openssl', type: 'Release', test: 'uwp',
302 build: 'cmake' , sys: 'ucrt64' , env: 'ucrt-x86_64' , tflags: 'skiprun',
303 config: '-DBUILD_SHARED_LIBS=ON -DCURL_USE_OPENSSL=ON' }
304 # { name: 'schannel', type: 'Release', test: 'uwp',
305 # build: 'autotools', sys: 'ucrt64' , env: 'ucrt-x86_64' , tflags: 'skiprun',
306 # config: '--without-debug --with-schannel --disable-static' }
307 - { name: 'schannel dev debug', type: 'Debug', cppflags: '-DCURL_SCHANNEL_DEV_DEBUG', image: 'windows-2025',
308 build: 'cmake' , sys: 'ucrt64' , env: 'ucrt-x86_64' , tflags: 'skiprun',
309 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=ON -DCURL_USE_SCHANNEL=ON -DCURL_USE_WOLFSSL=ON -DENABLE_UNICODE=ON -DCURL_DISABLE_HTTPSIG=OFF',
310 install: 'mingw-w64-ucrt-x86_64-wolfssl' }
311 fail-fast: false
312 steps:
313 - name: 'preinstalled tools'
314 shell: bash
315 run: echo '::group::MSYS2 packages'; /c/msys64/usr/bin/pacman.exe -Q || true; echo '::endgroup::'
317 - uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2.33.0
318 if: ${{ matrix.sys == 'msys' }}
319 with:
320 msystem: ${{ matrix.sys }}
321 # https://packages.msys2.org/search
322 # Packages that are used by most jobs. They each inflate cache size and come with a per-job install overhead.
323 # Add individual package requirements to the matrix `install:` entry instead.
324 install: >-
325 gcc perl
326 zlib-devel brotli-devel libzstd-devel libpsl-devel libnghttp2-devel
327 openssl-devel libssh2-devel
329 - uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2.33.0
330 if: ${{ matrix.sys != 'msys' }}
331 with:
332 msystem: ${{ matrix.sys }}
333 # Packages that are used by most jobs. They each inflate cache size and come with a per-job install overhead.
334 # Add individual package requirements to the matrix `install:` entry instead.
335 install: >-
336 perl diffutils
337 mingw-w64-${{ matrix.env }}-cc
338 mingw-w64-${{ matrix.env }}-libpsl
339 mingw-w64-${{ matrix.env }}-libssh2
340 mingw-w64-${{ matrix.env }}-c-ares
341 mingw-w64-${{ matrix.env }}-nghttp3
342 mingw-w64-${{ matrix.env }}-ngtcp2
343 mingw-w64-${{ matrix.env }}-openssl
345 - name: 'install prereqs'
346 env:
347 MATRIX_INSTALL: '${{ matrix.install }}'
348 run: |
349 # Install build tools in a separate step to avoid inflating shared cache size and being installed even if unused.
350 if [ "${MATRIX_SYS}" = 'msys' ]; then
351 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
352 pkgs='cmake ninja'
353 else
354 pkgs='autotools'
355 fi
356 else
357 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
358 pkgs="mingw-w64-${MATRIX_ENV}-cmake"
359 else
360 pkgs="mingw-w64-${MATRIX_ENV}-autotools"
361 fi
362 fi
363 /usr/bin/pacman --noconfirm --noprogressbar --sync --needed ${pkgs} ${MATRIX_INSTALL}
365 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
366 with:
367 persist-credentials: false
369 - name: 'autoreconf'
370 if: ${{ matrix.build == 'autotools' }}
371 timeout-minutes: 2
372 run: autoreconf -fi
374 - name: 'configure'
375 timeout-minutes: 5
376 env:
377 CPPFLAGS: '${{ matrix.cppflags }}'
378 MATRIX_CHKPREFILL: '${{ matrix.chkprefill }}'
379 MATRIX_CONFIG: '${{ matrix.config }}'
380 MATRIX_TYPE: '${{ matrix.type }}'
381 TFLAGS: '${{ matrix.tflags }}'
382 run: |
383 CPPFLAGS+=' -DCURL_DEBUG_NO_WIN32_WND'
384 if [ "${MATRIX_TEST}" = 'uwp' ]; then
385 CPPFLAGS+=' -DWINSTORECOMPAT -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0a00'
386 if [[ "${MATRIX_ENV}" != 'clang'* ]]; then
387 specs="$(realpath gcc-specs-uwp)"
388 gcc -dumpspecs | sed -e 's/-lmingwex/-lwindowsapp -lmingwex -lwindowsapp/' -e 's/-lmsvcrt/-lucrtapp/' > "${specs}"
389 CFLAGS="-specs=${specs}"
390 CFLAGS_CMAKE="-specs=$(cygpath -w "${specs}")"
391 fi
392 fi
393 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
394 for _chkprefill in '' ${MATRIX_CHKPREFILL}; do
395 if [[ "${MATRIX_ENV}" = 'clang'* ]]; then
396 options='-DCMAKE_C_COMPILER=clang'
397 else
398 options='-DCMAKE_C_COMPILER=gcc'
399 fi
400 [ "${MATRIX_SYS}" = 'msys' ] && options+=' -D_CURL_PREFILL=ON'
401 [ "${MATRIX_TEST}" = 'uwp' ] && options+=' -DCMAKE_SYSTEM_NAME=WindowsStore'
402 [ "${TFLAGS}" = 'skiprun' ] && options+=' -D_CURL_SKIP_BUILD_CERTS=ON'
403 [ "${_chkprefill}" = '_chkprefill' ] && options+=' -D_CURL_PREFILL=OFF'
404 cmake -B "bld${_chkprefill}" -G Ninja ${options} \
405 -DCMAKE_INSTALL_PREFIX="$HOME"/curl-install \
406 -DCMAKE_C_FLAGS="${CFLAGS_CMAKE} ${CPPFLAGS}" \
407 -DCMAKE_BUILD_TYPE="${MATRIX_TYPE}" \
408 -DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=30 \
409 -DCURL_WERROR=ON \
410 ${MATRIX_CONFIG}
411 done
412 if [ -d bld_chkprefill ] && ! diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h; then
413 echo '::group::reference configure log'; cat bld_chkprefill/CMakeFiles/CMake*.yaml 2>/dev/null || true; echo '::endgroup::'
414 false
415 fi
416 else
417 export CFLAGS
418 mkdir bld && cd bld && ../configure --prefix="$HOME"/curl-install --enable-unity --enable-warnings --enable-werror --disable-static \
419 --disable-dependency-tracking --enable-option-checking=fatal \
420 --with-libssh2 \
421 ${MATRIX_CONFIG}
422 fi
424 - name: 'configure log'
425 if: ${{ !cancelled() }}
426 run: cat bld/config.log bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
428 - name: 'curl_config.h'
429 run: |
430 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
431 grep -F '#define' bld/lib/curl_config.h | sort || true
433 - name: 'libcurl.pc, curl-config, cmake_install.cmake'
434 run: |
435 for f in libcurl.pc curl-config cmake_install.cmake; do
436 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
437 done
438 if command -v pccritic >/dev/null 2>&1; then
439 sed -i.bak 's/\x0d//g' bld/libcurl.pc # to suppress pccritic warning: style/PC061
440 pccritic --version
441 pccritic --min-score 100 bld/libcurl.pc
442 fi
444 - name: 'build'
445 timeout-minutes: 10
446 run: |
447 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
448 cmake --build bld --verbose
449 cmake --install bld --verbose
450 else
451 make -C bld V=1 install
452 fi
454 - name: 'curl -V'
455 timeout-minutes: 1
456 run: |
457 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
458 PATH="$PWD/bld/lib:$PATH"
459 else
460 PATH="$PWD/bld/lib/.libs:$PATH"
461 # avoid libtool's curl.exe wrapper for shared builds
462 mv bld/src/.libs/curl.exe bld/src/curl.exe || true
463 fi
464 find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 file --
465 find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 stat -c '%10s bytes: %n' --
466 if [ "${MATRIX_TEST}" != 'uwp' ]; then # curl: error initializing curl library
467 bld/src/curl.exe --disable --version
468 fi
470 - name: 'build tests'
471 if: ${{ matrix.tflags != 'skipall' }} # Save time by skipping this for autotools
472 timeout-minutes: 10
473 run: |
474 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
475 cmake --build bld --verbose --target testdeps
476 else
477 make -C bld V=1 -C tests
478 fi
479 if [ "${MATRIX_BUILD}" != 'cmake' ]; then
480 # avoid libtool's .exe wrappers for shared builds
481 mv bld/tests/libtest/.libs/*.exe bld/tests/libtest || true
482 mv bld/tests/server/.libs/*.exe bld/tests/server || true
483 mv bld/tests/tunit/.libs/*.exe bld/tests/tunit || true
484 mv bld/tests/unit/.libs/*.exe bld/tests/unit || true
485 fi
487 - name: 'cache test prereqs (stunnel)'
488 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
489 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
490 id: cache-stunnel
491 with:
492 path: C:\my-stunnel
493 key: ${{ runner.os }}-stunnel-${{ env.STUNNEL_VERSION }}-amd64
494 fail-on-cache-miss: true
496 - name: 'install test prereqs'
497 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
498 timeout-minutes: 2
499 run: |
500 if [ -z "${MATRIX_OPENSSH}" ]; then # MSYS2 openssh
501 /usr/bin/pacman --noconfirm --noprogressbar --sync --needed openssh
502 elif [ "${MATRIX_OPENSSH}" = 'OpenSSH-Windows-builtin' ]; then
503 # https://learn.microsoft.com/windows-server/administration/openssh/openssh_install_firstuse
504 if [[ "${MATRIX_IMAGE}" = *'windows-2025'* ]]; then
505 pwsh -Command 'Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0'
506 pwsh -Command 'Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0'
507 fi
508 else # OpenSSH-Windows
509 cd /c # no D: drive on windows-11-arm runners
510 if [[ "${MATRIX_IMAGE}" = *'-arm'* ]]; then
511 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
512 --location --proto-redir =https "https://github.com/PowerShell/Win32-OpenSSH/releases/download/${OPENSSH_WINDOWS_VERSION}/OpenSSH-ARM64.zip" --output pkg.bin
513 sha256sum pkg.bin && sha256sum pkg.bin | grep -qwF -- "${OPENSSH_WINDOWS_SHA256_ARM64}" && unzip pkg.bin && rm -f pkg.bin
514 else
515 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
516 --location --proto-redir =https "https://github.com/PowerShell/Win32-OpenSSH/releases/download/${OPENSSH_WINDOWS_VERSION}/OpenSSH-Win64.zip" --output pkg.bin
517 sha256sum pkg.bin && sha256sum pkg.bin | grep -qwF -- "${OPENSSH_WINDOWS_SHA256_WIN64}" && unzip pkg.bin && rm -f pkg.bin
518 fi
519 fi
521 - name: 'run tests'
522 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
523 timeout-minutes: ${{ contains(matrix.tflags, '-t') && 15 || 10 }}
524 env:
525 MATRIX_CONFIG: '${{ matrix.config }}'
526 MATRIX_INSTALL: '${{ matrix.install }}'
527 TFLAGS: '${{ matrix.tflags }}'
528 run: |
529 TFLAGS="-j8 ${TFLAGS}"
530 if [ "${MATRIX_SYS}" != 'msys' ]; then
531 TFLAGS+=' !498' # 'Reject too large HTTP response headers on endless redirects' HTTP, HTTP GET (runtests detecting result code 2009 instead of 56 returned by curl)
532 TFLAGS+=' ~3000 ~3001 ~3023 ~3024' # 'HTTPS localhost, first/last subject alt name matches, CN does not match' HTTPS, HTTP GET, PEM certificate (returning 56)
533 if [[ "${MATRIX_INSTALL}" = *'libssh2-wincng'* ]]; then
534 TFLAGS+=' ~SCP ~SFTP' # Flaky: `-8, Unable to exchange encryption keys`. https://github.com/libssh2/libssh2/issues/804
535 unset CURL_TEST_SSH_KEYALGO # libssh2 built with WinCNG does not support ssh-ed25519 hostkeys
536 export CURL_TEST_SSH_ENABLE_KEX=diffie-hellman-group16-sha512
537 fi
538 if [[ "${MATRIX_CONFIG} " = *'-DCURL_USE_LIBSSH=ON'* && \
539 "${MATRIX_ENV}" = *'x86_64'* ]]; then
540 export CURL_TEST_SSH_DISABLE_KEX=mlkem768x25519-sha256 # broken with libssh 0.12.0 Windows x64
541 fi
542 fi
543 if [ -n "${MATRIX_OPENSSH}" ]; then # OpenSSH-Windows
544 TFLAGS+=' ~601 ~603 ~617 ~619 ~621 ~641 ~665 ~2004 ~3022' # SCP
545 if [[ "${MATRIX_CONFIG} " = *'-DCURL_USE_LIBSSH=ON'* ]]; then
546 TFLAGS+=' ~614' # 'SFTP pre-quote chmod' SFTP, pre-quote, directory
547 fi
548 fi
549 if [ "${MATRIX_OPENSSH}" = 'OpenSSH-Windows' ]; then
550 if [[ "${MATRIX_IMAGE}" = *'-arm'* ]]; then
551 PATH="/c/OpenSSH-ARM64:$PATH"
552 else
553 PATH="/c/OpenSSH-Win64:$PATH"
554 fi
555 fi
556 if [[ "${MATRIX_INSTALL}" != *'python'* ]]; then
557 export CURL_TEST_NO_PYTHON=1 # we have no Python here, skip tests needing it
558 fi
559 PATH="$PATH:/c/my-stunnel/bin"
560 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
561 PATH="$PWD/bld/lib:$PATH"
562 cmake --build bld --verbose --target test-ci
563 else
564 PATH="$PWD/bld/lib/.libs:$PATH"
565 make -C bld V=1 test-ci
566 fi
568 - name: 'build examples'
569 if: ${{ matrix.build == 'cmake' || (matrix.tflags == 'skipall' || matrix.tflags == 'skiprun') }} # Save time by skipping this for autotools running tests
570 timeout-minutes: 5
571 run: |
572 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
573 cmake --build bld --verbose --target curl-examples-build
574 else
575 make -C bld V=1 examples
576 fi
578 - name: 'disk space used'
579 continue-on-error: true
580 run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 250KB bld
582 mingw-w64-standalone-downloads:
583 name: 'dl-mingw, CM ${{ matrix.ver }}-${{ matrix.env }} ${{ matrix.name }}'
584 needs: build-cache
585 runs-on: windows-2022
586 timeout-minutes: 10
587 defaults:
588 run:
589 shell: msys2 {0} # zizmor: ignore[misfeature]
590 env:
591 CURL_TEST_MIN: 1780
592 LDFLAGS: -s
593 MAKEFLAGS: -j 5
594 MATRIX_DIR: '${{ matrix.dir }}'
595 strategy:
596 matrix:
597 include:
598 - name: 'schannel +analyzer' # mingw-w64 14.0
599 sys: 'mingw64'
600 dir: 'w64devkit'
601 env: 'x86_64'
602 ver: '16.2.0'
603 url: 'https://github.com/skeeto/w64devkit/releases/download/v2.10.1/w64devkit-x64-2.10.1.7z.exe' # manually bumped
604 SHA256: add1edf984ce4d473cfeb7c52e0ab38db73a855bba6c7f564d5e16648eb2896a
605 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DCURL_USE_LIBSSH=ON -DENABLE_UNICODE=OFF -DENABLE_UNIX_SOCKETS=OFF -DCURL_GCC_ANALYZER=ON -DCMAKE_C_FLAGS=-DCURL_DEBUG_NO_WIN32_WND'
606 install: perl mingw-w64-x86_64-libssh
607 type: 'Debug'
608 - name: 'schannel' # mingw-w64 10.0
609 sys: 'mingw64'
610 dir: 'mingw64'
611 env: 'x86_64'
612 ver: '9.5.0'
613 url: 'https://github.com/brechtsanders/winlibs_mingw/releases/download/9.5.0-10.0.0-msvcrt-r1/winlibs-x86_64-posix-seh-gcc-9.5.0-mingw-w64msvcrt-10.0.0-r1.7z' # manually bumped
614 SHA256: 41637132ea7dc36a7f86a1961eaa334c380b5a3423d36aecb481cabcd006e3fe
615 config: '-DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=OFF -DCURL_DISABLE_VERBOSE_STRINGS=ON -DCMAKE_C_FLAGS=-DCURL_DEBUG_NO_WIN32_WND'
616 type: 'Release'
617 tflags: 'skiprun'
618 - name: 'schannel mbedtls U' # mingw-w64 6.0
619 sys: 'mingw64'
620 dir: 'mingw64'
621 env: 'x86_64'
622 ver: '7.3.0'
623 url: 'https://downloads.sourceforge.net/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/7.3.0/threads-win32/seh/x86_64-7.3.0-release-win32-seh-rt_v5-rev0.7z' # manually bumped
624 SHA256: 9dc08c9c2bdd5d8173f87791bed644f6e290624f739de474f117b590dfd8a721
625 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=ON -DCURL_USE_MBEDTLS=ON -DCURL_TARGET_WINDOWS_VERSION=0x0600'
626 install: mingw-w64-x86_64-mbedtls
627 type: 'Debug'
628 tflags: 'skiprun'
629 - name: 'MultiSSL !unity' # mingw-w64 5.0
630 sys: 'mingw32'
631 dir: 'mingw32'
632 env: 'i686'
633 ver: '6.4.0'
634 url: 'https://downloads.sourceforge.net/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.4.0/threads-win32/dwarf/i686-6.4.0-release-win32-dwarf-rt_v5-rev0.7z' # manually bumped
635 SHA256: 12d2c62ad4527ec8a52275ea8485678dcbe20bec4716a3c7ba274f225d696085
636 config: '-DCURL_USE_GNUTLS=ON -DCURL_USE_OPENSSL=ON -DCURL_USE_SCHANNEL=ON -DENABLE_ARES=ON -DENABLE_UNICODE=OFF -DCMAKE_UNITY_BUILD=OFF -DCURL_TARGET_WINDOWS_VERSION=0x0600'
637 install: perl mingw-w64-i686-c-ares mingw-w64-i686-gnutls mingw-w64-i686-libssh2 mingw-w64-i686-openssl
638 type: 'Release'
639 tflags: 'skiprun'
640 - name: 'schannel !examples' # mingw-w64 3.0
641 sys: 'mingw64'
642 dir: 'mingw64'
643 env: 'x86_64'
644 ver: '4.8.1'
645 url: 'https://downloads.sourceforge.net/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.8.1/threads-win32/seh/x86_64-4.8.1-release-win32-seh-rt_v3-rev2.7z' # manually bumped (lowest supported mingw-w64 version)
646 SHA256: 1353d997e85bb4494ebbebb432d824848d66b32c6045900da9a38a767b3c4ab4
647 config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DCURL_TARGET_WINDOWS_VERSION=0x0600'
648 type: 'Debug'
649 tflags: 'skipall'
650 fail-fast: false
651 steps:
652 - name: 'preinstalled tools'
653 shell: bash
654 run: echo '::group::MSYS2 packages'; /c/msys64/usr/bin/pacman.exe -Q || true; echo '::endgroup::'
656 - uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2.33.0
657 with:
658 msystem: ${{ matrix.sys }}
659 suppress-deprecation-warnings: 'msystem-mingw64 msystem-mingw32'
660 release: false
661 update: false
662 cache: false
663 path-type: inherit
664 install: >-
665 mingw-w64-${{ matrix.env }}-libpsl
666 ${{ matrix.install }}
668 - name: 'cache compiler (gcc ${{ matrix.ver }}-${{ matrix.env }})'
669 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
670 id: cache-compiler
671 with:
672 path: D:\my-cache
673 key: ${{ runner.os }}-mingw-w64-${{ matrix.ver }}-${{ matrix.env }}
675 - name: 'install compiler (gcc ${{ matrix.ver }}-${{ matrix.env }})'
676 if: ${{ !steps.cache-compiler.outputs.cache-hit }}
677 timeout-minutes: 5
678 env:
679 MATRIX_URL: '${{ matrix.url }}'
680 MATRIX_SHA256: '${{ matrix.SHA256 }}'
681 run: |
682 cd /d
683 mkdir my-cache
684 cd my-cache
685 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 240 --retry 3 --retry-connrefused \
686 --location --proto-redir =https "${MATRIX_URL}" --output pkg.bin
687 pwd
688 sha256sum pkg.bin && sha256sum pkg.bin | grep -qwF -- "${MATRIX_SHA256}" && 7z x -y pkg.bin >/dev/null && rm -f pkg.bin && ls -l
690 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
691 with:
692 persist-credentials: false
694 - name: 'configure'
695 timeout-minutes: 5
696 env:
697 MATRIX_CHKPREFILL: '${{ matrix.chkprefill }}'
698 MATRIX_CONFIG: '${{ matrix.config }}'
699 MATRIX_TYPE: '${{ matrix.type }}'
700 TFLAGS: '${{ matrix.tflags }}'
701 run: |
702 PATH="/d/my-cache/${MATRIX_DIR}/bin:$PATH"
703 for _chkprefill in '' ${MATRIX_CHKPREFILL}; do
704 options=''
705 [ "${TFLAGS}" = 'skiprun' ] && options+=' -D_CURL_SKIP_BUILD_CERTS=ON'
706 [ "${_chkprefill}" = '_chkprefill' ] && options+=' -D_CURL_PREFILL=OFF'
707 cmake -B "bld${_chkprefill}" -G Ninja ${options} \
708 -DCMAKE_C_COMPILER=gcc \
709 -DCMAKE_BUILD_TYPE="${MATRIX_TYPE}" \
710 -DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=30 \
711 -DCURL_DROP_UNUSED=ON \
712 -DCURL_WERROR=ON \
713 -DUSE_LIBIDN2=OFF \
714 -DCURL_DISABLE_HTTPSIG=OFF \
715 ${MATRIX_CONFIG}
716 done
717 if [ -d bld_chkprefill ] && ! diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h; then
718 echo '::group::reference configure log'; cat bld_chkprefill/CMakeFiles/CMake*.yaml 2>/dev/null || true; echo '::endgroup::'
719 false
720 fi
722 - name: 'configure log'
723 if: ${{ !cancelled() }}
724 run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
726 - name: 'curl_config.h'
727 run: |
728 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
729 grep -F '#define' bld/lib/curl_config.h | sort || true
731 - name: 'libcurl.pc, curl-config'
732 run: |
733 for f in libcurl.pc curl-config; do
734 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
735 done
737 - name: 'build'
738 timeout-minutes: 5
739 run: |
740 PATH="/d/my-cache/${MATRIX_DIR}/bin:$PATH"
741 cmake --build bld
743 - name: 'curl -V'
744 timeout-minutes: 1
745 run: |
746 /usr/bin/find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 file --
747 /usr/bin/find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 stat -c '%10s bytes: %n' --
748 PATH="$PWD/bld/lib:$PATH"
749 bld/src/curl.exe --disable --version
751 - name: 'build tests'
752 if: ${{ matrix.tflags != 'skipall' }}
753 timeout-minutes: 10
754 run: |
755 PATH="/d/my-cache/${MATRIX_DIR}/bin:$PATH"
756 cmake --build bld --target testdeps
758 - name: 'cache test prereqs (stunnel)'
759 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
760 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
761 id: cache-stunnel
762 with:
763 path: C:\my-stunnel
764 key: ${{ runner.os }}-stunnel-${{ env.STUNNEL_VERSION }}-amd64
765 fail-on-cache-miss: true
767 - name: 'run tests'
768 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
769 timeout-minutes: 10
770 env:
771 TFLAGS: '${{ matrix.tflags }}'
772 run: |
773 PATH="/d/my-cache/${MATRIX_DIR}/bin:$PATH"
774 TFLAGS="-j8 ${TFLAGS}"
775 TFLAGS+=' !498' # 'Reject too large HTTP response headers on endless redirects' HTTP, HTTP GET (runtests detecting result code 2009 instead of 56 returned by curl)
776 TFLAGS+=' ~3000 ~3001 ~3023 ~3024' # 'HTTPS localhost, last subject alt name matches, CN does not match' HTTPS, HTTP GET, PEM certificate (returning 56)
777 PATH="$PWD/bld/lib:$PATH:/c/my-stunnel/bin"
778 cmake --build bld --target test-ci
780 - name: 'build examples'
781 if: ${{ !contains(matrix.name, '!examples') }}
782 timeout-minutes: 5
783 run: |
784 PATH="/d/my-cache/${MATRIX_DIR}/bin:$PATH"
785 cmake --build bld --target curl-examples-build
787 - name: 'disk space used'
788 continue-on-error: true
789 run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 250KB bld
791 linux-cross-mingw-w64:
792 name: "linux-mingw, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} ${{ matrix.compiler }}"
793 runs-on: ubuntu-26.04-arm
794 timeout-minutes: 10
795 cache-mode: none
796 env:
797 LDFLAGS: -s
798 MAKEFLAGS: -j 5
799 TRIPLET: 'x86_64-w64-mingw32'
800 MATRIX_BUILD: '${{ matrix.build }}'
801 MATRIX_COMPILER: '${{ matrix.compiler }}'
802 strategy:
803 fail-fast: false
804 matrix:
805 include:
806 - { build: 'autotools', compiler: 'gcc' }
807 - { build: 'cmake' , compiler: 'gcc' }
808 - { build: 'cmake' , compiler: 'clang-tidy', install_packages: 'clang-22 clang-tidy-22', CFLAGS: '-Wunused-macros' }
809 steps:
810 - name: 'install prereqs'
811 timeout-minutes: 2
812 uses: $/.github/actions/pkg-install
813 with:
814 apt: gcc-mingw-w64-x86-64-win32 ${{ matrix.install_packages }}
816 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
817 with:
818 persist-credentials: false
820 - name: 'autoreconf'
821 if: ${{ matrix.build == 'autotools' }}
822 run: autoreconf -fi
824 - name: 'configure'
825 env:
826 CFLAGS: '${{ matrix.CFLAGS }}'
827 run: |
828 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
829 if [ "${MATRIX_COMPILER}" = 'clang-tidy' ]; then
830 options+=' -DCURL_CLANG_TIDY=ON -DCLANG_TIDY=/usr/bin/clang-tidy-22'
831 options+=' -DENABLE_UNICODE=ON -DUSE_SSLS_EXPORT=ON'
832 options+=' -DCMAKE_C_COMPILER=clang-22'
833 options+=" -DCMAKE_RC_COMPILER=llvm-windres-$(clang-22 -dumpversion | cut -d '.' -f 1)"
834 options+=' -DCMAKE_RC_FLAGS=--target=pe-x86-64' # Required for non-x86-64 runners
835 else
836 options+=" -DCMAKE_C_COMPILER=${TRIPLET}-gcc"
837 fi
838 cmake -B bld -G Ninja \
839 -DCMAKE_SYSTEM_NAME=Windows \
840 -DCMAKE_C_COMPILER_TARGET="${TRIPLET}" \
841 -DCMAKE_UNITY_BUILD=ON -D_CURL_TESTS_CONCAT=ON \
842 -DCURL_WERROR=ON \
843 -DCURL_USE_SCHANNEL=ON -DUSE_WIN32_IDN=ON \
844 -DCURL_USE_LIBPSL=OFF \
845 -D_CURL_SKIP_BUILD_CERTS=ON \
846 ${options}
847 else
848 mkdir bld && cd bld && ../configure --enable-unity --enable-warnings --enable-werror --disable-static \
849 --disable-dependency-tracking --enable-option-checking=fatal \
850 --host="${TRIPLET}" \
851 --with-schannel --with-winidn \
852 --without-libpsl
853 fi
855 - name: 'configure log'
856 if: ${{ !cancelled() }}
857 run: cat bld/config.log bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
859 - name: 'curl_config.h'
860 run: |
861 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
862 grep -F '#define' bld/lib/curl_config.h | sort || true
864 - name: 'libcurl.pc, curl-config'
865 run: |
866 for f in libcurl.pc curl-config; do
867 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
868 done
870 - name: 'build'
871 run: |
872 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
873 cmake --build bld
874 else
875 make -C bld
876 fi
878 - name: 'curl info'
879 run: |
880 find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 file --
881 find . \( -name '*.exe' -o -name '*.dll' -o -name '*.a' \) -print0 | grep -z curl | sort -z | xargs -0 stat -c '%10s bytes: %n' --
883 - name: 'build tests'
884 if: ${{ matrix.build == 'cmake' }} # Save time by skipping this for autotools and clang-tidy
885 run: |
886 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
887 cmake --build bld --target testdeps
888 else
889 make -C bld -C tests
890 fi
892 - name: 'build examples'
893 if: ${{ matrix.compiler != 'clang-tidy' }} # Save time by skipping this for clang-tidy
894 run: |
895 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
896 cmake --build bld --target curl-examples-build
897 else
898 make -C bld examples
899 fi
901 - name: 'disk space used'
902 run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 250KB bld
904 msvc:
905 name: 'msvc, CM ${{ matrix.arch }}-${{ matrix.plat }} ${{ matrix.name }}'
906 needs: build-cache
907 runs-on: ${{ matrix.image || 'windows-2022' }}
908 timeout-minutes: ${{ matrix.arch == 'arm64' && 12 || 10 }}
909 defaults:
910 run:
911 shell: msys2 {0} # zizmor: ignore[misfeature]
912 env:
913 MATRIX_ARCH: '${{ matrix.arch }}'
914 MATRIX_IMAGE: '${{ matrix.image }}'
915 MATRIX_INSTALL_MSYS2: '${{ matrix.install-msys2 }}'
916 MATRIX_INSTALL_VCPKG: '${{ matrix.install-vcpkg }}'
917 MATRIX_OPENSSH: '${{ matrix.openssh }}'
918 MATRIX_PLAT: '${{ matrix.plat }}'
919 MATRIX_TYPE: '${{ matrix.type }}'
920 VCPKG_DISABLE_METRICS: '1'
921 strategy:
922 matrix:
923 include:
924 - name: '!ssl +examples'
925 install-vcpkg: 'zlib libssh2[core,zlib]'
926 arch: 'x64'
927 env: 'ucrt-x86_64'
928 plat: 'uwp'
929 type: 'Debug'
930 image: 'windows-2025'
931 tflags: 'skiprun'
932 config: >-
933 -DENABLE_DEBUG=ON
934 -DCURL_ENABLE_SSL=OFF
935 -DUSE_WIN32_IDN=ON
937 - name: 'openssl +examples'
938 install-msys2: >-
939 perl
940 mingw-w64-ucrt-x86_64-brotli
941 mingw-w64-ucrt-x86_64-zlib
942 mingw-w64-ucrt-x86_64-zstd
943 mingw-w64-ucrt-x86_64-openssl
944 mingw-w64-ucrt-x86_64-libssh2
945 mingw-w64-ucrt-x86_64-nghttp2
946 mingw-w64-ucrt-x86_64-nghttp3
947 mingw-w64-ucrt-x86_64-ngtcp2
949 arch: 'x64'
950 env: 'ucrt-x86_64'
951 plat: 'windows'
952 type: 'Debug'
953 image: 'windows-2025'
954 chkprefill: '_chkprefill'
955 tflags: '--min=1860'
956 config: >-
957 -DENABLE_DEBUG=ON
958 -DCURL_USE_OPENSSL=ON -DUSE_NGTCP2=ON
959 -DOPENSSL_INCLUDE_DIR=/ucrt64/include
960 -DSSL_EAY_DEBUG=/ucrt64/lib/libssl.dll.a
961 -DSSL_EAY_RELEASE=/ucrt64/lib/libssl.dll.a
962 -DLIB_EAY_DEBUG=/ucrt64/lib/libcrypto.dll.a
963 -DLIB_EAY_RELEASE=/ucrt64/lib/libcrypto.dll.a
964 -DUSE_WIN32_IDN=ON -DUSE_SSLS_EXPORT=ON
965 -DBROTLI_INCLUDE_DIR=/ucrt64/include
966 -DBROTLICOMMON_LIBRARY=/ucrt64/lib/libbrotlicommon.dll.a
967 -DBROTLIDEC_LIBRARY=/ucrt64/lib/libbrotlidec.dll.a
968 -DZSTD_INCLUDE_DIR=/ucrt64/include
969 -DZSTD_LIBRARY=/ucrt64/lib/libzstd.dll.a
970 -DZLIB_INCLUDE_DIR=/ucrt64/include
971 -DZLIB_LIBRARY=/ucrt64/lib/libz.dll.a
972 -DLIBSSH2_INCLUDE_DIR=/ucrt64/include
973 -DLIBSSH2_LIBRARY=/ucrt64/lib/libssh2.dll.a
974 -DNGHTTP2_INCLUDE_DIR=/ucrt64/include
975 -DNGHTTP2_LIBRARY=/ucrt64/lib/libnghttp2.dll.a
976 -DNGHTTP3_INCLUDE_DIR=/ucrt64/include
977 -DNGHTTP3_LIBRARY=/ucrt64/lib/libnghttp3.dll.a
978 -DNGTCP2_INCLUDE_DIR=/ucrt64/include
979 -DNGTCP2_LIBRARY=/ucrt64/lib/libngtcp2.dll.a
980 -DNGTCP2_CRYPTO_OSSL_LIBRARY=/ucrt64/lib/libngtcp2_crypto_ossl.dll.a
981 -DCURL_CA_NATIVE=ON
982 -DUSE_PROXY_HTTP3=ON
984 - name: 'schannel U'
985 install-msys2: 'perl'
986 install-vcpkg: 'zlib libssh2[core,zlib]'
987 arch: 'arm64'
988 env: 'clang-aarch64'
989 plat: 'windows'
990 type: 'Debug'
991 image: 'windows-11-arm'
992 openssh: 'OpenSSH-Windows'
993 tflags: '--min=1850'
994 config: >-
995 -DENABLE_DEBUG=ON
996 -DCURL_USE_SCHANNEL=ON
997 -DUSE_WIN32_IDN=ON -DENABLE_UNICODE=ON -DUSE_SSLS_EXPORT=ON
999 fail-fast: false
1000 steps:
1001 - name: 'preinstalled tools'
1002 shell: bash
1003 run: echo '::group::MSYS2 packages'; /c/msys64/usr/bin/pacman.exe -Q || true; echo '::endgroup::'
1005 - uses: msys2/setup-msys2@ec48f7c5447b3140e2b088413ae3a55687bccb6e # v2.33.0
1006 with:
1007 msystem: ${{ matrix.arch == 'arm64' && 'clangarm64' || 'ucrt64' }}
1008 release: false
1009 cache: ${{ matrix.tflags != 'skiprun' }}
1010 path-type: inherit
1011 install: >-
1012 mingw-w64-${{ matrix.env }}-libpsl
1013 ${{ matrix.install-msys2 }}
1015 - name: 'vcpkg versions'
1016 if: ${{ matrix.install-vcpkg }}
1017 timeout-minutes: 1
1018 run: |
1019 git -C "$VCPKG_INSTALLATION_ROOT" show --no-patch --format='%H %ai'
1020 vcpkg version
1022 - name: 'vcpkg build'
1023 if: ${{ matrix.install-vcpkg }}
1024 timeout-minutes: 45
1025 run: vcpkg x-set-installed ${MATRIX_INSTALL_VCPKG} --triplet="${MATRIX_ARCH}-${MATRIX_PLAT}"
1027 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1028 with:
1029 persist-credentials: false
1031 - name: 'configure'
1032 timeout-minutes: 5
1033 env:
1034 MATRIX_CHKPREFILL: '${{ matrix.chkprefill }}'
1035 MATRIX_CONFIG: '${{ matrix.config }}'
1036 TFLAGS: '${{ matrix.tflags }}'
1037 run: |
1038 [ -f "${MINGW_PREFIX}/include/zconf.h" ] && sed -i -E 's|(# +define +Z_HAVE_UNISTD_H)|/*\1*/|g' "${MINGW_PREFIX}/include/zconf.h" # Patch MSYS2 zconf.h for MSVC
1039 for _chkprefill in '' ${MATRIX_CHKPREFILL}; do
1040 options=''
1041 cflags=''
1042 rcflags=''
1043 ldflags=''
1044 cflags+=' -DCURL_DEBUG_NO_WIN32_WND'
1045 if [ "${MATRIX_PLAT}" = 'uwp' ]; then
1046 options+=' -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0'
1047 cflags+=' -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP'
1048 ldflags+=' -APPCONTAINER:NO'
1049 vsglobals=';AppxPackage=false;WindowsAppContainer=false'
1050 fi
1051 if [ "${TFLAGS}" = 'skiprun' ]; then
1052 [ "${MATRIX_ARCH}" = 'arm64' ] && options+=' -A ARM64'
1053 [ "${MATRIX_ARCH}" = 'x64' ] && options+=' -A x64'
1054 [ "${MATRIX_ARCH}" = 'x86' ] && options+=' -A Win32'
1055 options+=" -DCMAKE_VS_GLOBALS=TrackFileAccess=false${vsglobals}"
1056 options+=' -D_CURL_SKIP_BUILD_CERTS=ON'
1057 unset CMAKE_GENERATOR
1058 else
1059 # Use Ninja when running tests to avoid MSBuild heuristics picking
1060 # up "error messages" in the test log output and making the job fail.
1061 # Officially this requires the vcvarsall.bat MS-DOS batch file (as of
1062 # VS2022). Since it integrates badly with CI steps and shell scripts,
1063 # reproduce the necessary build configuration manually, without envs.
1064 # The option to disable the MSBuild heuristics is likely called:
1065 # IgnoreStandardErrorWarningFormat=true, but there seems to be no
1066 # facility to pass it via CMake or CLI.
1067 [[ "$(uname -s)" = *'ARM64'* ]] && MSVC_HOST='arm64' || MSVC_HOST='x64' # x86
1068 MSVC_ROOTD="$(cygpath --mixed --short-name "$PROGRAMFILES/Microsoft Visual Studio")" # to avoid spaces in directory names
1069 echo 'Installed MSVC versions:'
1070 /usr/bin/find "$(cygpath --unix "$MSVC_ROOTD")" -mindepth 2 -maxdepth 2 -type d -name '*' || true
1071 MSVC_EDITION='18/Enterprise/vc/tools/msvc'
1072 echo 'Installed MSVC roots:'
1073 /usr/bin/find "$(cygpath --unix "$MSVC_ROOTD/$MSVC_EDITION")" -mindepth 1 -maxdepth 1 -type d -name '*.*'
1074 MSVC_ROOTU="$(/usr/bin/find "$(cygpath --unix "$MSVC_ROOTD/$MSVC_EDITION")" -mindepth 1 -maxdepth 1 -type d -name '*.*' | sort | tail -n 1)"
1075 MSVC_ROOTW="$(cygpath --mixed "$MSVC_ROOTU")"
1076 MSVC_ROOTU="$(cygpath --unix "$MSVC_ROOTW")"
1077 MSVC_BINU="$MSVC_ROOTU/bin/Host$MSVC_HOST/$MATRIX_ARCH"
1078 MSDK_ROOTW="$(cygpath --mixed --short-name "$(printenv 'ProgramFiles(x86)')/Windows Kits")/10"
1079 MSDK_ROOTU="$(cygpath --unix "$MSDK_ROOTW")"
1080 echo 'Installed Windows Kits:'
1081 /usr/bin/find "$MSDK_ROOTU/lib" -mindepth 1 -maxdepth 1 -type d -name '*.*'
1082 MSDK_VER="$(basename "$(/usr/bin/find "$MSDK_ROOTU/lib" -mindepth 1 -maxdepth 1 -type d -name '*.*' | sort | tail -n 1)")"
1083 MSDK_LIBW="$MSDK_ROOTW/lib/$MSDK_VER"
1084 MSDK_INCW="$MSDK_ROOTW/include/$MSDK_VER"
1085 MSDK_BINU="$MSDK_ROOTU/bin/$MSDK_VER/$MSVC_HOST"
1086 cflags+=" -external:W0"
1087 cflags+=" -external:I$MSVC_ROOTW/include"
1088 cflags+=" -external:I$MSDK_INCW/shared"
1089 cflags+=" -external:I$MSDK_INCW/ucrt"
1090 cflags+=" -external:I$MSDK_INCW/um"
1091 cflags+=" -external:I$MSDK_INCW/km"
1092 rcflags+=" -I$MSDK_INCW/shared"
1093 rcflags+=" -I$MSDK_INCW/um"
1094 ldflags+=" -libpath:$MSVC_ROOTW/lib/$MATRIX_ARCH"
1095 ldflags+=" -libpath:$MSDK_LIBW/ucrt/$MATRIX_ARCH"
1096 ldflags+=" -libpath:$MSDK_LIBW/um/$MATRIX_ARCH"
1097 ldflags+=" -libpath:$MSDK_LIBW/km/$MATRIX_ARCH"
1098 options+=" -DCMAKE_RC_COMPILER=$MSDK_BINU/rc.exe"
1099 options+=" -DCMAKE_MT=$MSDK_BINU/mt.exe"
1100 options+=" -DCMAKE_C_COMPILER=$MSVC_BINU/cl.exe"
1101 export CMAKE_GENERATOR='Ninja Multi-Config' # pass it via env to avoid space issues
1102 echo "Using MSVC: ${MSVC_ROOTW}"
1103 echo "Using Windows SDK: ${MSDK_VER}"
1104 fi
1105 [ "${_chkprefill}" = '_chkprefill' ] && options+=' -D_CURL_PREFILL=OFF'
1106 if [ -n "${MATRIX_INSTALL_VCPKG}" ]; then
1107 options+=" -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
1108 options+=" -DVCPKG_INSTALLED_DIR=$VCPKG_INSTALLATION_ROOT/installed"
1109 options+=" -DVCPKG_TARGET_TRIPLET=${MATRIX_ARCH}-${MATRIX_PLAT}"
1110 options+=" -DCMAKE_C_COMPILER_TARGET=${MATRIX_ARCH}-${MATRIX_PLAT}"
1111 options+=' -DVCPKG_APPLOCAL_DEPS=OFF'
1112 fi
1113 cmake -B "bld${_chkprefill}" ${options} \
1114 -DCMAKE_C_FLAGS="${cflags}" \
1115 -DCMAKE_RC_FLAGS="${rcflags}" \
1116 -DCMAKE_EXE_LINKER_FLAGS="${ldflags}" \
1117 -DCMAKE_SHARED_LINKER_FLAGS="${ldflags}" \
1118 -DCMAKE_UNITY_BUILD=ON \
1119 -DCURL_DROP_UNUSED=ON \
1120 -DCURL_WERROR=ON \
1121 -DLIBPSL_INCLUDE_DIR="${MINGW_PREFIX}/include" \
1122 -DLIBPSL_LIBRARY="${MINGW_PREFIX}/lib/libpsl.dll.a" \
1123 -DBUILD_SHARED_LIBS=OFF \
1124 ${MATRIX_CONFIG}
1125 done
1126 if [ -d bld_chkprefill ] && ! diff -u bld/lib/curl_config.h bld_chkprefill/lib/curl_config.h; then
1127 echo '::group::reference configure log'; cat bld_chkprefill/CMakeFiles/CMake*.yaml 2>/dev/null || true; echo '::endgroup::'
1128 false
1129 fi
1131 - name: 'configure log'
1132 if: ${{ !cancelled() }}
1133 run: cat bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
1135 - name: 'curl_config.h'
1136 run: |
1137 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
1138 grep -F '#define' bld/lib/curl_config.h | sort || true
1140 - name: 'libcurl.pc, curl-config'
1141 run: |
1142 for f in libcurl.pc curl-config; do
1143 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
1144 done
1146 - name: 'build'
1147 timeout-minutes: 5
1148 run: cmake --build bld --config "${MATRIX_TYPE}" --parallel 5
1150 - name: 'curl -V'
1151 timeout-minutes: 1
1152 run: |
1153 /usr/bin/find . \( -name '*.exe' -o -name '*.dll' -o -name '*.lib' -o -name '*.pdb' \) -print0 | grep -z curl | sort -z | xargs -0 file --
1154 /usr/bin/find . \( -name '*.exe' -o -name '*.dll' -o -name '*.lib' -o -name '*.pdb' \) -print0 | grep -z curl | sort -z | xargs -0 stat -c '%10s bytes: %n' --
1155 if [ "${MATRIX_PLAT}" != 'uwp' ]; then # Missing: ucrtbased.dll, VCRUNTIME140D.dll, VCRUNTIME140D_APP.dll
1156 PATH="$PWD/bld/lib/${MATRIX_TYPE}:$(cygpath --unix "${VCPKG_INSTALLATION_ROOT}")/installed/${MATRIX_ARCH}-${MATRIX_PLAT}/${MATRIX_TYPE}/bin:$PATH"
1157 "bld/src/${MATRIX_TYPE}/curl.exe" --disable --version
1158 fi
1160 - name: 'build tests'
1161 if: ${{ matrix.tflags != 'skipall' }}
1162 timeout-minutes: 10
1163 run: cmake --build bld --config "${MATRIX_TYPE}" --parallel 5 --target testdeps
1165 - name: 'cache test prereqs (stunnel)'
1166 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
1167 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
1168 id: cache-stunnel
1169 with:
1170 path: C:\my-stunnel
1171 key: ${{ runner.os }}-stunnel-${{ env.STUNNEL_VERSION }}-amd64
1172 fail-on-cache-miss: true
1174 - name: 'install test prereqs'
1175 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
1176 timeout-minutes: 2
1177 run: |
1178 if [ -z "${MATRIX_OPENSSH}" ]; then # MSYS2 openssh
1179 /usr/bin/pacman --noconfirm --noprogressbar --sync --needed openssh
1180 elif [ "${MATRIX_OPENSSH}" = 'OpenSSH-Windows-builtin' ]; then
1181 # https://learn.microsoft.com/windows-server/administration/openssh/openssh_install_firstuse
1182 if [[ "${MATRIX_IMAGE}" = *'windows-2025'* ]]; then
1183 pwsh -Command 'Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0'
1184 pwsh -Command 'Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0'
1185 fi
1186 else # OpenSSH-Windows
1187 cd /c # no D: drive on windows-11-arm runners
1188 if [[ "${MATRIX_IMAGE}" = *'-arm'* ]]; then
1189 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
1190 --location --proto-redir =https "https://github.com/PowerShell/Win32-OpenSSH/releases/download/${OPENSSH_WINDOWS_VERSION}/OpenSSH-ARM64.zip" --output pkg.bin
1191 sha256sum pkg.bin && sha256sum pkg.bin | grep -qwF -- "${OPENSSH_WINDOWS_SHA256_ARM64}" && unzip pkg.bin && rm -f pkg.bin
1192 else
1193 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
1194 --location --proto-redir =https "https://github.com/PowerShell/Win32-OpenSSH/releases/download/${OPENSSH_WINDOWS_VERSION}/OpenSSH-Win64.zip" --output pkg.bin
1195 sha256sum pkg.bin && sha256sum pkg.bin | grep -qwF -- "${OPENSSH_WINDOWS_SHA256_WIN64}" && unzip pkg.bin && rm -f pkg.bin
1196 fi
1197 fi
1199 - name: 'run tests'
1200 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}
1201 timeout-minutes: 10
1202 env:
1203 TFLAGS: '${{ matrix.tflags }}'
1204 run: |
1205 TFLAGS="-j8 ${TFLAGS}"
1206 TFLAGS+=' !498' # 'Reject too large HTTP response headers on endless redirects' HTTP, HTTP GET (runtests detecting result code 2009 instead of 56 returned by curl)
1207 TFLAGS+=' ~3000 ~3001 ~3023 ~3024' # 'HTTPS localhost, last subject alt name matches, CN does not match' HTTPS, HTTP GET, PEM certificate (returning 56)
1208 if [[ "${MATRIX_INSTALL_MSYS2}" = *'libssh2-wincng'* || \
1209 "${MATRIX_INSTALL_VCPKG}" = *'libssh2[core,zlib]'* ]]; then
1210 TFLAGS+=' ~SCP ~SFTP' # Flaky: `-8, Unable to exchange encryption keys`. https://github.com/libssh2/libssh2/issues/804
1211 unset CURL_TEST_SSH_KEYALGO # libssh2 built with WinCNG does not support ssh-ed25519 hostkeys
1212 export CURL_TEST_SSH_ENABLE_KEX=diffie-hellman-group16-sha512
1213 fi
1214 if [ -n "${MATRIX_OPENSSH}" ]; then # OpenSSH-Windows
1215 TFLAGS+=' ~601 ~603 ~617 ~619 ~621 ~641 ~665 ~2004' # SCP
1216 if [[ "${MATRIX_INSTALL_MSYS2} " = *'libssh '* || \
1217 "${MATRIX_INSTALL_VCPKG} " = *'libssh '* ]]; then
1218 TFLAGS+=' ~614' # 'SFTP pre-quote chmod' SFTP, pre-quote, directory
1219 else
1220 TFLAGS+=' ~3022' # 'SCP correct sha256 host key' SCP, server sha256 key check
1221 fi
1222 fi
1223 if [ "${MATRIX_OPENSSH}" = 'OpenSSH-Windows' ]; then
1224 if [[ "${MATRIX_IMAGE}" = *'-arm'* ]]; then
1225 PATH="/c/OpenSSH-ARM64:$PATH"
1226 else
1227 PATH="/c/OpenSSH-Win64:$PATH"
1228 fi
1229 fi
1230 PATH="$PWD/bld/lib/${MATRIX_TYPE}:$(cygpath --unix "${VCPKG_INSTALLATION_ROOT}")/installed/${MATRIX_ARCH}-${MATRIX_PLAT}/${MATRIX_TYPE}/bin:$PATH:/c/my-stunnel/bin"
1231 cmake --build bld --config "${MATRIX_TYPE}" --target test-ci
1233 - name: 'build examples'
1234 timeout-minutes: 5
1235 if: ${{ contains(matrix.name, '+examples') }}
1236 run: cmake --build bld --config "${MATRIX_TYPE}" --parallel 5 --target curl-examples-build
1238 - name: 'disk space used'
1239 continue-on-error: true
1240 run: du -sh .; echo; du -sh -t 250KB ./*; echo; du -h -t 250KB bld
Diagnostics4 git calls · 31 ms
CallStatusSizeTime031 ms
discover200152 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch 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 · 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 · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=24 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
fetch20012 KiB · hit25 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=12683 git.response.cache=HIT git.response.duration_ms=25 git.fetch.wants=41f4950e0de1b10b7136aa5f810a810f3bd9be3f 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=12683 git.pkt.payload.max=12662 git.sideband.band1.bytes=12661 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
- a5e26270bf6b224d
- Request
- f9a667ae…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format