2
0

http3-linux.yml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  2. #
  3. # SPDX-License-Identifier: curl
  4. name: Linux HTTP/3
  5. 'on':
  6. push:
  7. branches:
  8. - master
  9. - '*/ci'
  10. paths-ignore:
  11. - '**/*.md'
  12. - '**/CMakeLists.txt'
  13. - '.circleci/**'
  14. - 'appveyor.*'
  15. - 'CMake/**'
  16. - 'packages/**'
  17. - 'plan9/**'
  18. - 'projects/**'
  19. - 'winbuild/**'
  20. pull_request:
  21. branches:
  22. - master
  23. paths-ignore:
  24. - '**/*.md'
  25. - '**/CMakeLists.txt'
  26. - '.circleci/**'
  27. - 'appveyor.*'
  28. - 'CMake/**'
  29. - 'packages/**'
  30. - 'plan9/**'
  31. - 'projects/**'
  32. - 'winbuild/**'
  33. concurrency:
  34. # Hardcoded workflow filename as workflow name above is just Linux again
  35. group: http3-${{ github.event.pull_request.number || github.sha }}
  36. cancel-in-progress: true
  37. permissions: {}
  38. env:
  39. MAKEFLAGS: -j 5
  40. # handled in renovate.json
  41. openssl-version: 3.4.0
  42. # handled in renovate.json
  43. quictls-version: 3.3.0
  44. # renovate: datasource=github-tags depName=gnutls/gnutls versioning=semver registryUrl=https://github.com
  45. gnutls-version: 3.8.8
  46. wolfssl-version: master
  47. # renovate: datasource=github-tags depName=ngtcp2/nghttp3 versioning=semver registryUrl=https://github.com
  48. nghttp3-version: 1.6.0
  49. # renovate: datasource=github-tags depName=ngtcp2/ngtcp2 versioning=semver registryUrl=https://github.com
  50. ngtcp2-version: 1.8.1
  51. # renovate: datasource=github-tags depName=nghttp2/nghttp2 versioning=semver registryUrl=https://github.com
  52. nghttp2-version: 1.64.0
  53. # renovate: datasource=github-tags depName=cloudflare/quiche versioning=semver registryUrl=https://github.com
  54. quiche-version: 0.22.0
  55. jobs:
  56. setup:
  57. runs-on: ubuntu-latest
  58. outputs:
  59. wolfssl-version: ${{ steps.wolfssl-version.outputs.result }}
  60. steps:
  61. - id: wolfssl-version
  62. uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
  63. with:
  64. result-encoding: string
  65. script: |
  66. let version = '${{ env.wolfssl-version }}'
  67. if (version != 'master') {
  68. return version
  69. }
  70. let { data: commits } = await github.rest.repos.listCommits({
  71. owner: 'wolfSSL',
  72. repo: 'wolfssl',
  73. })
  74. return commits[0].sha
  75. build-cache:
  76. needs:
  77. - setup
  78. runs-on: ubuntu-latest
  79. steps:
  80. - name: cache quictls
  81. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  82. id: cache-quictls-no-deprecated
  83. env:
  84. cache-name: cache-quictls-no-deprecated
  85. with:
  86. path: /home/runner/quictls/build
  87. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quictls-version }}-quic1
  88. - name: cache gnutls
  89. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  90. id: cache-gnutls
  91. env:
  92. cache-name: cache-gnutls
  93. with:
  94. path: /home/runner/gnutls/build
  95. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.gnutls-version }}
  96. - name: cache wolfssl
  97. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  98. id: cache-wolfssl
  99. env:
  100. cache-name: cache-wolfssl
  101. wolfssl-version: ${{ needs.setup.outputs.wolfssl-version }}
  102. with:
  103. path: /home/runner/wolfssl/build
  104. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.wolfssl-version }}
  105. - name: cache nghttp3
  106. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  107. id: cache-nghttp3
  108. env:
  109. cache-name: cache-nghttp3
  110. with:
  111. path: /home/runner/nghttp3/build
  112. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp3-version }}
  113. - name: cache ngtcp2
  114. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  115. id: cache-ngtcp2
  116. env:
  117. cache-name: cache-ngtcp2
  118. with:
  119. path: /home/runner/ngtcp2/build
  120. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.ngtcp2-version }}
  121. - name: cache nghttp2
  122. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  123. id: cache-nghttp2
  124. env:
  125. cache-name: cache-nghttp2
  126. with:
  127. path: /home/runner/nghttp2/build
  128. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp2-version }}
  129. - id: settings
  130. if: |
  131. steps.cache-quictls-no-deprecated.outputs.cache-hit != 'true' ||
  132. steps.cache-gnutls.outputs.cache-hit != 'true' ||
  133. steps.cache-wolfssl.outputs.cache-hit != 'true' ||
  134. steps.cache-nghttp3.outputs.cache-hit != 'true' ||
  135. steps.cache-ngtcp2.outputs.cache-hit != 'true' ||
  136. steps.cache-nghttp2.outputs.cache-hit != 'true'
  137. run: |
  138. echo 'needs-build=true' >> $GITHUB_OUTPUT
  139. - name: install build prereqs
  140. if: steps.settings.outputs.needs-build == 'true'
  141. run: |
  142. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  143. sudo apt-get update -y
  144. sudo apt-get install -y --no-install-suggests --no-install-recommends \
  145. libtool autoconf automake pkgconf stunnel4 \
  146. libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev \
  147. nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin \
  148. libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
  149. texinfo texlive texlive-extra-utils autopoint libev-dev \
  150. apache2 apache2-dev libnghttp2-dev
  151. echo 'CC=gcc-12' >> $GITHUB_ENV
  152. echo 'CXX=g++-12' >> $GITHUB_ENV
  153. - if: steps.cache-quictls-no-deprecated.outputs.cache-hit != 'true'
  154. run: |
  155. cd $HOME
  156. git clone --quiet --depth=1 -b openssl-${{ env.quictls-version }}-quic1 https://github.com/quictls/openssl quictls
  157. cd quictls
  158. ./config no-deprecated --prefix=$PWD/build --libdir=lib
  159. make
  160. make -j1 install_sw
  161. name: 'build quictls'
  162. - if: steps.cache-gnutls.outputs.cache-hit != 'true'
  163. run: |
  164. cd $HOME
  165. git clone --quiet --depth=1 -b ${{ env.gnutls-version }} https://github.com/gnutls/gnutls.git
  166. cd gnutls
  167. ./bootstrap
  168. ./configure --disable-dependency-tracking --prefix=$PWD/build \
  169. LDFLAGS="-Wl,-rpath,$PWD/build/lib -L$PWD/build/lib" \
  170. --with-included-libtasn1 --with-included-unistring \
  171. --disable-guile --disable-doc --disable-tests --disable-tools
  172. make
  173. make install
  174. name: 'build gnutls'
  175. - if: steps.cache-wolfssl.outputs.cache-hit != 'true'
  176. env:
  177. wolfssl-version: ${{ needs.setup.outputs.wolfssl-version }}
  178. run: |
  179. cd $HOME
  180. mkdir wolfssl
  181. cd wolfssl
  182. git init
  183. git remote add origin https://github.com/wolfSSL/wolfssl.git
  184. git fetch origin --depth=1 ${{ env.wolfssl-version }}
  185. git checkout ${{ env.wolfssl-version }}
  186. ./autogen.sh
  187. ./configure --disable-dependency-tracking --enable-all --enable-quic --prefix=$PWD/build
  188. make
  189. make install
  190. name: 'build wolfssl'
  191. - if: steps.cache-nghttp3.outputs.cache-hit != 'true'
  192. run: |
  193. cd $HOME
  194. git clone --quiet --depth=1 -b v${{ env.nghttp3-version }} https://github.com/ngtcp2/nghttp3
  195. cd nghttp3
  196. git submodule update --init --depth=1
  197. autoreconf -fi
  198. ./configure --disable-dependency-tracking --prefix=$PWD/build PKG_CONFIG_PATH="$PWD/build/lib/pkgconfig" --enable-lib-only
  199. make
  200. make install
  201. name: 'build nghttp3'
  202. - if: steps.cache-ngtcp2.outputs.cache-hit != 'true'
  203. run: |
  204. cd $HOME
  205. git clone --quiet --depth=1 -b v${{ env.ngtcp2-version }} https://github.com/ngtcp2/ngtcp2
  206. cd ngtcp2
  207. autoreconf -fi
  208. ./configure --disable-dependency-tracking --prefix=$PWD/build \
  209. PKG_CONFIG_PATH="$PWD/build/lib/pkgconfig:$HOME/quictls/build/lib/pkgconfig:$HOME/gnutls/build/lib/pkgconfig:$HOME/wolfssl/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig" \
  210. --enable-lib-only --with-openssl --with-gnutls --with-wolfssl
  211. make install
  212. name: 'build ngtcp2'
  213. - if: steps.cache-nghttp2.outputs.cache-hit != 'true'
  214. run: |
  215. cd $HOME
  216. git clone --quiet --depth=1 -b v${{ env.nghttp2-version }} https://github.com/nghttp2/nghttp2
  217. cd nghttp2
  218. autoreconf -fi
  219. ./configure --disable-dependency-tracking --prefix=$PWD/build \
  220. PKG_CONFIG_PATH="$HOME/build/lib/pkgconfig:$HOME/quictls/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig" \
  221. LDFLAGS="-Wl,-rpath,$HOME/quictls/build/lib" \
  222. --enable-http3
  223. make install
  224. name: 'build nghttp2'
  225. linux:
  226. name: ${{ matrix.build.generate && 'CM' || 'AM' }} ${{ matrix.build.name }}
  227. needs:
  228. - setup
  229. - build-cache
  230. runs-on: 'ubuntu-24.04'
  231. timeout-minutes: 45
  232. strategy:
  233. fail-fast: false
  234. matrix:
  235. build:
  236. - name: quictls
  237. PKG_CONFIG_PATH: '$HOME/quictls/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  238. configure: >-
  239. LDFLAGS="-Wl,-rpath,$HOME/quictls/build/lib"
  240. --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug --disable-ntlm
  241. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  242. --with-openssl=$HOME/quictls/build
  243. - name: gnutls
  244. PKG_CONFIG_PATH: '$HOME/gnutls/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  245. configure: >-
  246. LDFLAGS="-Wl,-rpath,$HOME/gnutls/build/lib"
  247. --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug
  248. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  249. --with-gnutls=$HOME/gnutls/build
  250. - name: wolfssl
  251. PKG_CONFIG_PATH: '$HOME/wolfssl/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  252. configure: >-
  253. LDFLAGS="-Wl,-rpath,$HOME/wolfssl/build/lib"
  254. --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug
  255. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  256. --with-wolfssl=$HOME/wolfssl/build
  257. --enable-httpsrr --enable-ech
  258. - name: wolfssl
  259. PKG_CONFIG_PATH: '$HOME/wolfssl/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  260. generate: >-
  261. -DCURL_USE_WOLFSSL=ON -DUSE_NGTCP2=ON -DENABLE_DEBUG=ON
  262. -DTEST_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  263. -DHTTPD_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  264. -DUSE_HTTPSRR=ON -DUSE_ECH=ON
  265. - name: openssl-quic
  266. PKG_CONFIG_PATH: '$HOME/openssl/build/lib64/pkgconfig'
  267. configure: >-
  268. LDFLAGS="-Wl,-rpath,$HOME/openssl/build/lib64"
  269. --enable-warnings --enable-werror --enable-debug --disable-ntlm
  270. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  271. --with-openssl=$HOME/openssl/build --with-openssl-quic
  272. --with-nghttp3=$HOME/nghttp3/build
  273. - name: quiche
  274. configure: >-
  275. LDFLAGS="-Wl,-rpath,$HOME/quiche/target/release"
  276. --with-openssl=$HOME/quiche/quiche/deps/boringssl/src
  277. --enable-warnings --enable-werror --enable-debug
  278. --with-quiche=$HOME/quiche/target/release
  279. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  280. --with-ca-fallback
  281. - name: quiche
  282. PKG_CONFIG_PATH: '$HOME/quiche/target/release'
  283. generate: >-
  284. -DOPENSSL_ROOT_DIR=$HOME/quiche/quiche/deps/boringssl/src -DENABLE_DEBUG=ON
  285. -DUSE_QUICHE=ON
  286. -DTEST_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  287. -DHTTPD_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  288. -DCURL_CA_FALLBACK=ON
  289. steps:
  290. - run: |
  291. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  292. sudo apt-get update -y
  293. sudo apt-get install -y --no-install-suggests --no-install-recommends \
  294. libtool autoconf automake ninja-build pkgconf stunnel4 \
  295. libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev \
  296. nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin \
  297. libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
  298. texinfo texlive texlive-extra-utils autopoint libev-dev \
  299. apache2 apache2-dev libnghttp2-dev vsftpd
  300. python3 -m venv $HOME/venv
  301. echo 'CC=gcc-12' >> $GITHUB_ENV
  302. echo 'CXX=g++-12' >> $GITHUB_ENV
  303. name: 'install prereqs'
  304. - name: cache quictls
  305. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  306. id: cache-quictls-no-deprecated
  307. env:
  308. cache-name: cache-quictls-no-deprecated
  309. with:
  310. path: /home/runner/quictls/build
  311. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quictls-version }}
  312. fail-on-cache-miss: true
  313. - name: cache gnutls
  314. if: matrix.build.name == 'gnutls'
  315. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  316. id: cache-gnutls
  317. env:
  318. cache-name: cache-gnutls
  319. with:
  320. path: /home/runner/gnutls/build
  321. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.gnutls-version }}
  322. fail-on-cache-miss: true
  323. - name: cache wolfssl
  324. if: matrix.build.name == 'wolfssl'
  325. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  326. id: cache-wolfssl
  327. env:
  328. cache-name: cache-wolfssl
  329. wolfssl-version: ${{ needs.setup.outputs.wolfssl-version }}
  330. with:
  331. path: /home/runner/wolfssl/build
  332. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.wolfssl-version }}
  333. fail-on-cache-miss: true
  334. - name: cache nghttp3
  335. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  336. id: cache-nghttp3
  337. env:
  338. cache-name: cache-nghttp3
  339. with:
  340. path: /home/runner/nghttp3/build
  341. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp3-version }}
  342. fail-on-cache-miss: true
  343. - name: cache ngtcp2
  344. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  345. id: cache-ngtcp2
  346. env:
  347. cache-name: cache-ngtcp2
  348. with:
  349. path: /home/runner/ngtcp2/build
  350. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.ngtcp2-version }}
  351. fail-on-cache-miss: true
  352. - name: cache nghttp2
  353. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  354. id: cache-nghttp2
  355. env:
  356. cache-name: cache-nghttp2
  357. with:
  358. path: /home/runner/nghttp2/build
  359. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp2-version }}
  360. fail-on-cache-miss: true
  361. - name: cache openssl
  362. if: matrix.build.name == 'openssl-quic'
  363. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  364. id: cache-openssl
  365. env:
  366. cache-name: cache-openssl
  367. with:
  368. path: /home/runner/openssl/build
  369. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.openssl-version }}
  370. - name: 'install openssl'
  371. if: matrix.build.name == 'openssl-quic' && steps.cache-openssl.outputs.cache-hit != 'true'
  372. run: |
  373. git clone --quiet --depth=1 -b openssl-${{ env.openssl-version }} https://github.com/openssl/openssl
  374. cd openssl
  375. ./config --prefix=$HOME/openssl/build
  376. make -j1 install_sw
  377. cat exporters/openssl.pc
  378. - name: cache quiche
  379. if: matrix.build.name == 'quiche'
  380. uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
  381. id: cache-quiche
  382. env:
  383. cache-name: cache-quiche
  384. with:
  385. path: /home/runner/quiche
  386. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quiche-version }}
  387. - if: matrix.build.name == 'quiche' && steps.cache-quiche.outputs.cache-hit != 'true'
  388. run: |
  389. cd $HOME
  390. git clone --quiet --depth=1 -b ${{ env.quiche-version }} --recursive https://github.com/cloudflare/quiche.git
  391. cd quiche
  392. #### Work-around https://github.com/curl/curl/issues/7927 #######
  393. #### See https://github.com/alexcrichton/cmake-rs/issues/131 ####
  394. sed -i -e 's/cmake = "0.1"/cmake = "=0.1.45"/' quiche/Cargo.toml
  395. cargo build -v --package quiche --release --features ffi,pkg-config-meta,qlog --verbose
  396. ln -s libquiche.so target/release/libquiche.so.0
  397. mkdir -v quiche/deps/boringssl/src/lib
  398. ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/
  399. # include dir
  400. # $HOME/quiche/quiche/deps/boringssl/src/include
  401. # lib dir
  402. # $HOME/quiche/quiche/deps/boringssl/src/lib
  403. name: 'build quiche and boringssl'
  404. - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
  405. - run: autoreconf -fi
  406. if: ${{ matrix.build.configure }}
  407. name: 'autoreconf'
  408. - name: 'configure'
  409. run: |
  410. if [ -n '${{ matrix.build.PKG_CONFIG_PATH }}' ]; then
  411. export PKG_CONFIG_PATH="${{ matrix.build.PKG_CONFIG_PATH }}"
  412. fi
  413. if [ -n '${{ matrix.build.generate }}' ]; then
  414. cmake -B . -G Ninja \
  415. -DCMAKE_C_COMPILER_TARGET=$(uname -m)-pc-linux-gnu -DBUILD_STATIC_LIBS=ON \
  416. -DCMAKE_UNITY_BUILD=ON -DCURL_TEST_BUNDLES=ON -DCURL_WERROR=ON \
  417. -DCURL_BROTLI=ON -DCURL_ZSTD=ON \
  418. ${{ matrix.build.generate }}
  419. else
  420. ./configure --disable-dependency-tracking --enable-unity --enable-test-bundles --enable-warnings --enable-werror \
  421. ${{ matrix.build.configure }}
  422. fi
  423. - name: 'configure log'
  424. if: ${{ !cancelled() }}
  425. run: cat config.log CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
  426. - name: 'curl_config.h'
  427. run: |
  428. echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
  429. grep -F '#define' lib/curl_config.h | sort || true
  430. - name: 'test configs'
  431. run: |
  432. cat tests/config || true
  433. cat tests/http/config.ini || true
  434. - name: 'build'
  435. run: |
  436. if [ -n '${{ matrix.build.generate }}' ]; then
  437. cmake --build . --verbose
  438. else
  439. make V=1
  440. fi
  441. - run: ./src/curl -V
  442. name: 'check curl -V output'
  443. - name: 'build tests'
  444. run: |
  445. if [ -n '${{ matrix.build.generate }}' ]; then
  446. cmake --build . --verbose --target testdeps
  447. else
  448. make V=1 -C tests
  449. fi
  450. - name: 'install test prereqs'
  451. run: |
  452. source $HOME/venv/bin/activate
  453. python3 -m pip install -r tests/requirements.txt
  454. - name: 'run tests'
  455. env:
  456. TFLAGS: "${{ matrix.build.tflags }}"
  457. run: |
  458. source $HOME/venv/bin/activate
  459. if [ -n '${{ matrix.build.generate }}' ]; then
  460. cmake --build . --verbose --target test-ci
  461. else
  462. make V=1 test-ci
  463. fi
  464. - name: 'install pytest prereqs'
  465. run: |
  466. source $HOME/venv/bin/activate
  467. python3 -m pip install -r tests/http/requirements.txt
  468. - name: 'run pytest'
  469. env:
  470. TFLAGS: "${{ matrix.build.tflags }}"
  471. CURL_CI: github
  472. run: |
  473. source $HOME/venv/bin/activate
  474. if [ -n '${{ matrix.build.generate }}' ]; then
  475. cmake --build . --verbose --target curl-pytest-ci
  476. else
  477. make V=1 pytest-ci
  478. fi
  479. - name: 'build examples'
  480. run: |
  481. if [ -n '${{ matrix.build.generate }}' ]; then
  482. cmake --build . --verbose --target curl-examples
  483. else
  484. make V=1 examples
  485. fi