master
1# Copyright (C) Viktor Szakats
2#
3# SPDX-License-Identifier: curl
5name: 'non-native'
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: none
35env:
36 CURL_CI: github
37 CURL_TEST_MIN: 1800
38 DO_NOT_TRACK: '1'
40jobs:
41 cross:
42 name: "${{ matrix.os }} ${{ matrix.version }}, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} ${{ matrix.cc }} ${{ matrix.desc }} ${{ matrix.arch }}"
43 runs-on: ubuntu-latest
44 timeout-minutes: 15
45 defaults:
46 run:
47 shell: cpa.sh {0} # zizmor: ignore[misfeature]
48 env:
49 CC: '${{ matrix.cc }}'
50 MAKEFLAGS: -j 3
51 MATRIX_ARCH: '${{ matrix.arch }}'
52 MATRIX_BUILD: '${{ matrix.build }}'
53 MATRIX_INSTALL: '${{ matrix.install }}'
54 MATRIX_OPTIONS: '${{ matrix.options }}'
55 MATRIX_OS: '${{ matrix.os }}'
56 MATRIX_VERSION: '${{ matrix.version }}'
57 strategy:
58 matrix:
59 include:
60 # https://github.com/DragonFlyBSD/DPorts
61 - { os: 'dragonflybsd', version: '6.4.2', build: 'autotools', arch: 'x86_64' , cc: 'gcc' , desc: 'openssl', tflags: 'skiprun',
62 install: 'autoconf automake libtool openldap26-client libidn2',
63 options: '--with-openssl --enable-ldap --enable-ldaps --with-libidn2' }
65 - { os: 'dragonflybsd', version: '6.4.2', build: 'cmake' , arch: 'x86_64' , cc: 'gcc' , desc: 'openssl', tflags: 'skipall',
66 install: 'cmake ninja' }
68 # https://ports.freebsd.org/
69 - { os: 'freebsd' , version: '15.1', build: 'autotools', arch: 'x86_64' , cc: 'clang', desc: 'openssl',
70 install: 'autoconf automake libtool krb5-devel openldap26-client libidn2 stunnel',
71 options: '--with-openssl --with-gssapi --enable-ldap --enable-ldaps --with-libidn2' }
73 - { os: 'freebsd' , version: '15.1', build: 'cmake' , arch: 'x86_64' , cc: 'clang', desc: 'openssl !unity !examples', tflags: 'skiprun',
74 install: 'cmake-core ninja perl5 krb5-devel openldap26-client libidn2',
75 options: '-DCURL_USE_GSSAPI=ON -DCMAKE_UNITY_BUILD=OFF' }
77 - { os: 'freebsd' , version: '15.1', build: 'cmake' , arch: 'riscv64', cc: 'clang', desc: 'openssl !examples', tflags: 'HTTP --min=0 --subset=0/10 -R --seed',
78 install: 'cmake-core ninja perl5',
79 options: '-D_CURL_PREFILL=ON -DBUILD_LIBCURL_DOCS=OFF -DBUILD_MISC_DOCS=OFF -DENABLE_CURL_MANUAL=OFF -DCURL_DISABLE_HTTPSIG=OFF -DCURL_DISABLE_TYPECHECK=ON' }
81 - { os: 'freebsd' , version: '14.3', build: 'autotools', arch: 'arm64' , cc: 'clang', desc: 'openssl !examples', tflags: 'skipall',
82 install: 'autoconf automake libtool krb5-devel openldap26-client libidn2 stunnel',
83 options: '--with-openssl --with-gssapi --enable-ldap --enable-ldaps --with-libidn2 --disable-typecheck' }
85 - { os: 'freebsd' , version: '14.5', build: 'cmake' , arch: 'arm64' , cc: 'clang', desc: 'openssl', tflags: 'skiprun',
86 install: 'cmake-core ninja perl5 krb5-devel openldap26-client libidn2 stunnel',
87 options: '-DCURL_USE_GSSAPI=ON -DCURL_DISABLE_TYPECHECK=ON' }
89 # https://app.midnightbsd.org/
90 # https://man.midnightbsd.org/cgi-bin/man.cgi/mport
91 # { os: 'midnightbsd' , version: '4.0.4', build: 'autotools', arch: 'x86_64' , cc: 'clang', desc: 'gnutls !examples', tflags: 'skipall',
92 # install: 'autoconf autoconf-archive automake libtool gnutls',
93 # options: '--with-gnutls' }
95 - { os: 'midnightbsd' , version: '4.0.4', build: 'cmake' , arch: 'x86_64' , cc: 'clang', desc: 'gnutls', tflags: 'skiprun',
96 install: 'cmake-core ninja perl5 gnutls openldap26-client libidn2',
97 options: '-DCURL_USE_GNUTLS=ON' }
99 # https://pkgsrc.se/
100 - { os: 'netbsd' , version: '10.2' , build: 'autotools', arch: 'x86_64' , cc: 'gcc' , desc: 'openssl !examples', tflags: 'skipall',
101 install: 'autoconf automake libtool mit-krb5',
102 options: '--with-openssl --with-gssapi' }
104 - { os: 'netbsd' , version: '11.0' , build: 'cmake' , arch: 'x86_64' , cc: 'gcc' , desc: 'openssl',
105 install: 'cmake ninja-build mit-krb5 openldap-client libidn2',
106 options: '-DCURL_USE_GSSAPI=ON' }
108 # https://openbsd.app/
109 # https://www.openbsd.org/faq/faq15.html
110 # https://github.com/OpenMPT/openmpt/blob/master/.github/workflows/OpenBSD-Autotools.yml
111 - { os: 'openbsd' , version: '7.9' , build: 'autotools', arch: 'x86_64' , cc: 'clang', desc: 'libressl !examples', tflags: 'skipall',
112 install: 'autoconf-2.72p0 automake-1.18.1 libtool', # NOTE: also sync these versions with the autoreconf step!
113 options: '--with-openssl' }
115 # Skip test 2707 'ws: Peculiar frame sizes' on suspicion of hangs
116 - { os: 'openbsd' , version: '8.0' , build: 'cmake' , arch: 'x86_64' , cc: 'clang', desc: 'libressl', tflags: '!2707',
117 install: 'cmake ninja openldap-client-- libidn2' }
119 fail-fast: false
120 steps:
121 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
122 with:
123 persist-credentials: false
125 - name: 'setup VM'
126 uses: cross-platform-actions/action@82668f1fbd89d9c99487604f822cbf6716f124d3 # v1.7.0
127 with:
128 environment_variables: 'CC CURL_CI CURL_TEST_MIN DO_NOT_TRACK MAKEFLAGS MATRIX_ARCH MATRIX_BUILD MATRIX_INSTALL MATRIX_OPTIONS MATRIX_OS MATRIX_VERSION TFLAGS'
129 operating_system: '${{ matrix.os }}'
130 version: '${{ matrix.version }}'
131 architecture: '${{ matrix.arch }}'
133 - name: 'install prereqs'
134 run: |
135 if [ "${MATRIX_OS}" = 'dragonflybsd' ]; then
136 sudo pkg install -y pkgconf brotli libnghttp2 ${MATRIX_INSTALL}
137 elif [ "${MATRIX_OS}" = 'freebsd' ]; then
138 find /usr/local/etc/pkg/repos || true
139 sudo pkg install -y pkgconf brotli libnghttp2 ${MATRIX_INSTALL}
140 elif [ "${MATRIX_OS}" = 'midnightbsd' ]; then
141 if [ "${MATRIX_BUILD}" = 'autotools' ]; then
142 sudo mport index | grep -v -E 'Downloading.+%'
143 sudo mport upgrade | grep -v -E '(Downloading.+%|^/usr/local)'
144 fi
145 sudo mport install pkgconf brotli libnghttp2 ${MATRIX_INSTALL} | grep -v -E '(Downloading.+%|^/usr/local)' || true
146 command -v pkg-config >/dev/null 2>&1
147 elif [ "${MATRIX_OS}" = 'netbsd' ]; then
148 sudo pkgin -y install pkg-config perl brotli libssh2 libpsl nghttp2 ${MATRIX_INSTALL}
149 elif [ "${MATRIX_OS}" = 'openbsd' ]; then
150 sudo pkg_add -I brotli libssh2 libpsl nghttp2 ${MATRIX_INSTALL}
151 if [ "${MATRIX_BUILD}" = 'autotools' ]; then
152 sudo pkg_delete -I curl # to avoid autotools build linking against system libcurl
153 fi
154 fi
156 - name: 'autoreconf'
157 if: ${{ matrix.build == 'autotools' }}
158 run: |
159 if [ "${MATRIX_OS}" = 'openbsd' ]; then
160 if [ "${MATRIX_VERSION}" = '7.9' ]; then
161 export AUTOCONF_VERSION=2.72
162 export AUTOMAKE_VERSION=1.18
163 fi
164 fi
165 autoreconf -fi
167 - name: 'configure'
168 run: |
169 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
170 cmake -B bld -G Ninja -DCMAKE_INSTALL_PREFIX="$HOME"/curl-install \
171 -DCMAKE_C_COMPILER="${CC}" \
172 -DCMAKE_UNITY_BUILD=ON -DCURL_WERROR=ON -DENABLE_DEBUG=ON -DCMAKE_BUILD_TYPE=Debug \
173 ${MATRIX_OPTIONS}
174 else
175 if [ "${MATRIX_ARCH}" != 'x86_64' ]; then
176 options='--disable-manual --disable-docs' # Slow with autotools, skip on emulated CPU
177 fi
178 mkdir bld && cd bld
179 ../configure --prefix="$HOME"/curl-install --enable-unity --enable-debug --enable-warnings --enable-werror --disable-static \
180 --disable-dependency-tracking --enable-option-checking=fatal \
181 --with-brotli --with-libssh2 --with-nghttp2 \
182 ${options} ${MATRIX_OPTIONS}
183 fi
185 - name: 'configure log'
186 if: ${{ !cancelled() }}
187 run: cat bld/config.log bld/CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
189 - name: 'curl_config.h'
190 run: |
191 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
192 grep -F '#define' bld/lib/curl_config.h | sort || true
194 - name: 'libcurl.pc, curl-config'
195 run: |
196 for f in libcurl.pc curl-config; do
197 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
198 done
199 if command -v pccritic >/dev/null 2>&1; then
200 pccritic --version
201 pccritic --min-score 98 bld/libcurl.pc
202 fi
204 - name: 'build'
205 run: |
206 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
207 cmake --build bld
208 else
209 make -C bld V=1
210 fi
212 - name: 'curl -V'
213 run: |
214 find . -type f \( -name curl -o -name '*.so.*' -o -name '*.a' \) -print0 | sort -z | xargs -0 file --
215 find . -type f \( -name curl -o -name '*.so.*' -o -name '*.a' \) -print0 | sort -z | xargs -0 stat -f '%10z bytes: %N' --
216 bld/src/curl --disable --version
218 - name: 'curl install'
219 run: |
220 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
221 cmake --install bld
222 else
223 make -C bld install
224 fi
226 - name: 'build tests'
227 if: ${{ matrix.tflags != 'skipall' }} # Slow on emulated CPU
228 run: |
229 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
230 cmake --build bld --verbose --target testdeps
231 else
232 make -C bld V=1 -C tests
233 fi
235 - name: 'run tests'
236 if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }} # Slow on emulated CPU
237 env:
238 TFLAGS: '${{ matrix.tflags }}'
239 run: |
240 TFLAGS="-j8 ${TFLAGS}"
241 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
242 cmake --build bld --verbose --target test-ci
243 else
244 make -C bld V=1 test-ci
245 fi
247 - name: 'build examples'
248 if: ${{ !contains(matrix.desc, '!examples') }}
249 run: |
250 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
251 cmake --build bld --target curl-examples-build
252 else
253 make -C bld examples
254 fi
256 amiga:
257 name: "AmigaOS, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} gcc AmiSSL m68k"
258 runs-on: ubuntu-latest
259 timeout-minutes: 5
260 cache-mode: write
261 env:
262 MAKEFLAGS: -j 5
263 MATRIX_BUILD: '${{ matrix.build }}'
264 # renovate: datasource=github-releases depName=jens-maus/amissl versioning=semver-coerced
265 AMISSL_VERSION: 5.27
266 AMISSL_SHA256: 5003bef8c5930354d16b0ce7196d71b2811891c42fad38a9238c5ce4098ad42a
267 TOOLCHAIN_VERSION: 6.5.0 # manually bumped
268 TOOLCHAIN_SHA256: 381e227c9ef552f073771d6f851cfdf873b574f3cf5db7c1c0107ea5d7146edc
269 strategy:
270 matrix:
271 build: [autotools, cmake]
272 fail-fast: false
273 steps:
274 - name: 'cache compiler'
275 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
276 id: cache-compiler
277 with:
278 path: ~/opt/amiga
279 key: ${{ runner.os }}-amigaos-${{ env.TOOLCHAIN_VERSION }}-${{ env.AMISSL_VERSION }}-amd64
281 - name: 'install compiler'
282 if: ${{ !steps.cache-compiler.outputs.cache-hit }}
283 run: |
284 cd ~
285 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 3 --retry-connrefused \
286 https://franke.ms/download/amiga-gcc.tgz --output pkg.bin
287 sha256sum pkg.bin | tee /dev/stderr | grep -qwF -- "${TOOLCHAIN_SHA256}" && tar -xf pkg.bin && rm -f pkg.bin
288 cd opt/amiga
289 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
290 --location --proto-redir =https "https://github.com/jens-maus/amissl/releases/download/${AMISSL_VERSION}/AmiSSL-${AMISSL_VERSION}-SDK.lha" --output pkg.bin
291 sha256sum pkg.bin | tee /dev/stderr | grep -qwF -- "${AMISSL_SHA256}" && 7z x -bd -y pkg.bin && rm -f pkg.bin
293 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
294 with:
295 persist-credentials: false
297 - name: 'configure'
298 run: |
299 ln -s ~/opt/amiga /opt
300 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
301 cmake -B bld -G Ninja \
302 -DAMIGA=1 \
303 -DCMAKE_SYSTEM_NAME=Generic \
304 -DCMAKE_SYSTEM_PROCESSOR=m68k \
305 -DCMAKE_C_COMPILER_TARGET=m68k-unknown-amigaos \
306 -DCMAKE_C_COMPILER=/opt/amiga/bin/m68k-amigaos-gcc \
307 -DCMAKE_C_FLAGS='-O0 -msoft-float -mcrt=clib2' \
308 -DCMAKE_UNITY_BUILD=ON \
309 -DCURL_WERROR=ON \
310 -DCURL_USE_LIBPSL=OFF \
311 -DAMISSL_INCLUDE_DIR=/opt/amiga/AmiSSL/Developer/include \
312 -DAMISSL_STUBS_LIBRARY=/opt/amiga/AmiSSL/Developer/lib/AmigaOS3/libamisslstubs.a \
313 -DAMISSL_AUTO_LIBRARY=/opt/amiga/AmiSSL/Developer/lib/AmigaOS3/libamisslauto.a
314 else
315 autoreconf -fi
316 mkdir bld && cd bld && ../configure --enable-unity --enable-warnings --enable-werror \
317 --disable-dependency-tracking --enable-option-checking=fatal \
318 CC=/opt/amiga/bin/m68k-amigaos-gcc \
319 AR=/opt/amiga/bin/m68k-amigaos-ar \
320 RANLIB=/opt/amiga/bin/m68k-amigaos-ranlib \
321 --host=m68k-amigaos \
322 --disable-shared \
323 --without-libpsl \
324 --with-amissl \
325 LDFLAGS=-L/opt/amiga/AmiSSL/Developer/lib/AmigaOS3 \
326 CPPFLAGS=-I/opt/amiga/AmiSSL/Developer/include \
327 CFLAGS='-O0 -msoft-float -mcrt=clib2' \
328 LIBS='-lnet -lm -latomic'
329 fi
331 - name: 'configure log'
332 if: ${{ !cancelled() }}
333 run: cat bld/config.log bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
335 - name: 'curl_config.h'
336 run: |
337 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
338 grep -F '#define' bld/lib/curl_config.h | sort || true
340 - name: 'libcurl.pc, curl-config'
341 run: |
342 for f in libcurl.pc curl-config; do
343 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
344 done
346 - name: 'build'
347 run: |
348 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
349 cmake --build bld
350 else
351 make -C bld
352 fi
354 - name: 'curl info'
355 run: |
356 find . -type f \( -name curl -o -name '*.a' \) -print0 | sort -z | xargs -0 file --
357 find . -type f \( -name curl -o -name '*.a' \) -print0 | sort -z | xargs -0 stat -c '%10s bytes: %n' --
359 - name: 'build tests'
360 if: ${{ matrix.build == 'cmake' }} # skip for autotools to save time
361 run: |
362 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
363 cmake --build bld --target testdeps
364 else
365 make -C bld -C tests
366 fi
368 - name: 'build examples'
369 if: ${{ matrix.build == 'cmake' }} # skip for autotools to save time
370 run: |
371 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
372 cmake --build bld --target curl-examples-build
373 else
374 make -C bld examples
375 fi
377 android:
378 name: "Android ${{ matrix.platform }}, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} ${{ matrix.name }} ${{ matrix.arch }}"
379 runs-on: ubuntu-26.04
380 timeout-minutes: 5
381 env:
382 LDFLAGS: -s
383 MAKEFLAGS: -j 5
384 MATRIX_BUILD: '${{ matrix.build }}'
385 strategy:
386 matrix:
387 include:
388 - { build: 'autotools', platform: '21', arch: 'arm64-v8a' , name: "!ssl !zstd",
389 options: '--without-ssl --without-libpsl --without-zstd' }
391 - { build: 'cmake' , platform: '21', arch: 'arm64-v8a' , name: "!ssl !zstd",
392 options: '-DCURL_ENABLE_SSL=OFF -DCURL_USE_LIBPSL=OFF -DCURL_ZSTD=OFF' }
394 - { build: 'cmake' , platform: '21', arch: 'armeabi-v7a', name: "!ssl !zstd",
395 options: '-DCURL_ENABLE_SSL=OFF -DCURL_USE_LIBPSL=OFF -DCURL_ZSTD=OFF' }
397 - { build: 'autotools', platform: '35', arch: 'arm64-v8a' , name: "!ssl !zstd",
398 options: '--without-ssl --without-libpsl --without-zstd' }
400 - { build: 'cmake' , platform: '35', arch: 'arm64-v8a' , name: "!ssl !zstd",
401 options: '-DCURL_ENABLE_SSL=OFF -DCURL_USE_LIBPSL=OFF -DCURL_ZSTD=OFF' }
403 fail-fast: false
404 steps:
405 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
406 with:
407 persist-credentials: false
409 - name: 'autoreconf'
410 if: ${{ matrix.build == 'autotools' }}
411 run: autoreconf -fi
413 - name: 'configure'
414 env:
415 MATRIX_ARCH: '${{ matrix.arch }}'
416 MATRIX_OPTIONS: '${{ matrix.options }}'
417 MATRIX_PLATFORM: '${{ matrix.platform }}'
418 run: |
419 if [ "${MATRIX_BUILD}" = 'cmake' ]; then # https://developer.android.com/ndk/guides/cmake
420 cmake -B bld -G Ninja \
421 -DANDROID_ABI="${MATRIX_ARCH}" \
422 -DANDROID_PLATFORM="android-${MATRIX_PLATFORM}" \
423 -DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake" -Wno-deprecated \
424 -DCMAKE_UNITY_BUILD=ON \
425 -DCURL_WERROR=ON \
426 ${MATRIX_OPTIONS}
427 else
428 if [ "${MATRIX_ARCH}" = 'armeabi-v7a' ]; then
429 triplet='armv7a-linux-androideabi'
430 else
431 triplet='aarch64-linux-android'
432 fi
433 TOOLCHAIN="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64"
434 mkdir bld && cd bld && ../configure --enable-unity --enable-warnings --enable-werror --disable-shared \
435 --disable-dependency-tracking --enable-option-checking=fatal \
436 CC="$TOOLCHAIN/bin/${triplet}${MATRIX_PLATFORM}-clang" \
437 AR="$TOOLCHAIN/bin/llvm-ar" \
438 RANLIB="$TOOLCHAIN/bin/llvm-ranlib" \
439 --host="${triplet}${MATRIX_PLATFORM}" \
440 ${MATRIX_OPTIONS}
441 fi
443 - name: 'configure log'
444 if: ${{ !cancelled() }}
445 run: cat bld/config.log bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
447 - name: 'curl_config.h'
448 run: |
449 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
450 grep -F '#define' bld/lib/curl_config.h | sort || true
452 - name: 'libcurl.pc, curl-config'
453 run: |
454 for f in libcurl.pc curl-config; do
455 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
456 done
458 - name: 'build'
459 run: |
460 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
461 cmake --build bld --verbose
462 else
463 make -C bld V=1
464 fi
466 - name: 'curl info'
467 run: |
468 find . -type f \( -name curl -o -name '*.so' -o -name '*.a' \) -print0 | sort -z | xargs -0 file --
469 find . -type f \( -name curl -o -name '*.so' -o -name '*.a' \) -print0 | sort -z | xargs -0 stat -c '%10s bytes: %n' --
471 - name: 'build tests'
472 run: |
473 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
474 cmake --build bld --target testdeps
475 else
476 make -C bld -C tests
477 fi
479 - name: 'build examples'
480 run: |
481 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
482 cmake --build bld --target curl-examples-build
483 else
484 make -C bld examples
485 fi
487 msdos:
488 name: "MS-DOS, ${{ matrix.build == 'cmake' && 'CM' || 'AM' }} djgpp !ssl i586"
489 runs-on: ubuntu-latest
490 timeout-minutes: 5
491 cache-mode: write
492 env:
493 LDFLAGS: -s
494 MAKEFLAGS: -j 5
495 MATRIX_BUILD: '${{ matrix.build }}'
496 # renovate: datasource=github-releases depName=andrewwutw/build-djgpp versioning=semver-coerced
497 TOOLCHAIN_VERSION: '3.4'
498 TOOLCHAIN_SHA256: 8464f17017d6ab1b2bb2df4ed82357b5bf692e6e2b7fee37e315638f3d505f00
499 strategy:
500 matrix:
501 build: [autotools, cmake]
502 fail-fast: false
503 steps:
504 - name: 'install prereqs'
505 timeout-minutes: 2
506 uses: $/.github/actions/pkg-install
507 with:
508 apt: libfl2
510 - name: 'cache compiler (djgpp)'
511 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
512 id: cache-compiler
513 with:
514 path: ~/djgpp
515 key: ${{ runner.os }}-djgpp-${{ env.TOOLCHAIN_VERSION }}-amd64
517 - name: 'install compiler (djgpp)'
518 if: ${{ !steps.cache-compiler.outputs.cache-hit }}
519 run: |
520 cd ~
521 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 120 --retry 3 --retry-connrefused \
522 --location --proto-redir =https "https://github.com/andrewwutw/build-djgpp/releases/download/v${TOOLCHAIN_VERSION}/djgpp-linux64-gcc1220.tar.bz2" --output pkg.bin
523 sha256sum pkg.bin | tee /dev/stderr | grep -qwF -- "${TOOLCHAIN_SHA256}" && tar -xjf pkg.bin && rm -f pkg.bin
524 cd djgpp
525 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
526 https://www.delorie.com/pub/djgpp/current/v2tk/wat3211b.zip --output pkg.bin
527 sha256sum pkg.bin | tee /dev/stderr | grep -qwF faa2222ab5deb2c2aac229c760bf4d45aca5379f5af97865c308a0467046b67a && unzip -q pkg.bin && rm -f pkg.bin
528 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
529 https://www.delorie.com/pub/djgpp/current/v2tk/zlb13b.zip --output pkg.bin
530 sha256sum pkg.bin | tee /dev/stderr | grep -qwF f3d2fa8129e7591c7e79074306d8ab91a70ec172cc01baedeae74992285dd3a3 && unzip -q pkg.bin && rm -f pkg.bin
532 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
533 with:
534 persist-credentials: false
536 - name: 'configure'
537 run: |
538 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
539 cmake -B bld -G Ninja \
540 -DCMAKE_SYSTEM_NAME=DOS \
541 -DCMAKE_SYSTEM_PROCESSOR=x86 \
542 -DCMAKE_C_COMPILER_TARGET=i586-pc-msdosdjgpp \
543 -DCMAKE_C_COMPILER="$HOME"/djgpp/bin/i586-pc-msdosdjgpp-gcc \
544 -DCMAKE_UNITY_BUILD=ON \
545 -DCURL_WERROR=ON \
546 -DCURL_ENABLE_SSL=OFF -DCURL_USE_LIBPSL=OFF \
547 -DZLIB_INCLUDE_DIR="$HOME"/djgpp/include \
548 -DZLIB_LIBRARY="$HOME"/djgpp/lib/libz.a \
549 -DWATT_ROOT="$HOME"/djgpp/net/watt
550 else
551 autoreconf -fi
552 mkdir bld && cd bld && ../configure --enable-unity --enable-warnings --enable-werror --disable-shared \
553 --disable-dependency-tracking --enable-option-checking=fatal \
554 CC="$HOME"/djgpp/bin/i586-pc-msdosdjgpp-gcc \
555 AR="$HOME"/djgpp/bin/i586-pc-msdosdjgpp-ar \
556 RANLIB="$HOME"/djgpp/bin/i586-pc-msdosdjgpp-ranlib \
557 WATT_ROOT="$HOME"/djgpp/net/watt \
558 --host=i586-pc-msdosdjgpp \
559 --without-ssl --without-libpsl \
560 --with-zlib="$HOME"/djgpp
561 fi
563 - name: 'configure log'
564 if: ${{ !cancelled() }}
565 run: cat bld/config.log bld/CMakeFiles/CMake*.yaml 2>/dev/null || true
567 - name: 'curl_config.h'
568 run: |
569 echo '::group::raw'; cat bld/lib/curl_config.h || true; echo '::endgroup::'
570 grep -F '#define' bld/lib/curl_config.h | sort || true
572 - name: 'libcurl.pc, curl-config'
573 run: |
574 for f in libcurl.pc curl-config; do
575 echo "::group::${f}"; grep -v '^#' bld/"${f}" || true; echo '::endgroup::'
576 done
578 - name: 'build'
579 run: |
580 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
581 cmake --build bld
582 else
583 make -C bld
584 fi
586 - name: 'curl info'
587 run: |
588 find . \( -name '*.exe' -o -name '*.a' \) -print0 | sort -z | xargs -0 file --
589 find . \( -name '*.exe' -o -name '*.a' \) -print0 | sort -z | xargs -0 stat -c '%10s bytes: %n' --
591 - name: 'build tests'
592 if: ${{ matrix.build == 'cmake' }} # skip for autotools to save time
593 run: |
594 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
595 cmake --build bld --target testdeps
596 else
597 make -C bld -C tests
598 fi
600 - name: 'build examples'
601 if: ${{ matrix.build == 'cmake' }} # skip for autotools to save time
602 run: |
603 if [ "${MATRIX_BUILD}" = 'cmake' ]; then
604 cmake --build bld --target curl-examples-build
605 else
606 make -C bld examples
607 fi
Diagnostics4 git calls · 337 ms
CallStatusSizeTime0337 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 · hit6 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=328 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=6 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
fetch2005.7 KiB328 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=5817 git.response.cache=MISS git.response.duration_ms=328 git.fetch.wants=188ed344a45700c39247eb94752d110395ea8438 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=5817 git.pkt.payload.max=5796 git.sideband.band1.bytes=5795 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
- a5e1901e8d8f5b65
- Request
- c5088a2f…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format