http3-linux.yml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  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.9.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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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@1bd1e32a3bdc45362d1e726936510720a7c30a57 # 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 no-makedepend no-apps no-docs no-tests
  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 \
  188. --disable-benchmark --disable-crypttests --disable-examples --prefix=$PWD/build
  189. make
  190. make install
  191. name: 'build wolfssl'
  192. - if: steps.cache-nghttp3.outputs.cache-hit != 'true'
  193. run: |
  194. cd $HOME
  195. git clone --quiet --depth=1 -b v${{ env.nghttp3-version }} https://github.com/ngtcp2/nghttp3
  196. cd nghttp3
  197. git submodule update --init --depth=1
  198. autoreconf -fi
  199. ./configure --disable-dependency-tracking --prefix=$PWD/build PKG_CONFIG_PATH="$PWD/build/lib/pkgconfig" --enable-lib-only
  200. make
  201. make install
  202. name: 'build nghttp3'
  203. - if: steps.cache-ngtcp2.outputs.cache-hit != 'true'
  204. run: |
  205. cd $HOME
  206. git clone --quiet --depth=1 -b v${{ env.ngtcp2-version }} https://github.com/ngtcp2/ngtcp2
  207. cd ngtcp2
  208. autoreconf -fi
  209. ./configure --disable-dependency-tracking --prefix=$PWD/build \
  210. 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" \
  211. --enable-lib-only --with-openssl --with-gnutls --with-wolfssl
  212. make install
  213. name: 'build ngtcp2'
  214. - if: steps.cache-nghttp2.outputs.cache-hit != 'true'
  215. run: |
  216. cd $HOME
  217. git clone --quiet --depth=1 -b v${{ env.nghttp2-version }} https://github.com/nghttp2/nghttp2
  218. cd nghttp2
  219. autoreconf -fi
  220. ./configure --disable-dependency-tracking --prefix=$PWD/build \
  221. PKG_CONFIG_PATH="$HOME/build/lib/pkgconfig:$HOME/quictls/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig" \
  222. LDFLAGS="-Wl,-rpath,$HOME/quictls/build/lib" \
  223. --enable-http3
  224. make install
  225. name: 'build nghttp2'
  226. linux:
  227. name: ${{ matrix.build.generate && 'CM' || 'AM' }} ${{ matrix.build.name }}
  228. needs:
  229. - setup
  230. - build-cache
  231. runs-on: 'ubuntu-24.04'
  232. timeout-minutes: 45
  233. strategy:
  234. fail-fast: false
  235. matrix:
  236. build:
  237. - name: quictls
  238. PKG_CONFIG_PATH: '$HOME/quictls/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  239. configure: >-
  240. LDFLAGS="-Wl,-rpath,$HOME/quictls/build/lib"
  241. --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug --disable-ntlm
  242. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  243. --with-openssl=$HOME/quictls/build
  244. - name: gnutls
  245. PKG_CONFIG_PATH: '$HOME/gnutls/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  246. configure: >-
  247. LDFLAGS="-Wl,-rpath,$HOME/gnutls/build/lib"
  248. --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug
  249. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  250. --with-gnutls=$HOME/gnutls/build
  251. - name: wolfssl
  252. PKG_CONFIG_PATH: '$HOME/wolfssl/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  253. configure: >-
  254. LDFLAGS="-Wl,-rpath,$HOME/wolfssl/build/lib"
  255. --with-ngtcp2=$HOME/ngtcp2/build --enable-warnings --enable-werror --enable-debug
  256. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  257. --with-wolfssl=$HOME/wolfssl/build
  258. --enable-ech
  259. - name: wolfssl
  260. PKG_CONFIG_PATH: '$HOME/wolfssl/build/lib/pkgconfig:$HOME/nghttp3/build/lib/pkgconfig:$HOME/ngtcp2/build/lib/pkgconfig:$HOME/nghttp2/build/lib/pkgconfig'
  261. generate: >-
  262. -DCURL_USE_WOLFSSL=ON -DUSE_NGTCP2=ON -DENABLE_DEBUG=ON
  263. -DTEST_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  264. -DHTTPD_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  265. -DUSE_ECH=ON
  266. - name: openssl-quic
  267. PKG_CONFIG_PATH: '$HOME/openssl/build/lib64/pkgconfig'
  268. configure: >-
  269. LDFLAGS="-Wl,-rpath,$HOME/openssl/build/lib64"
  270. --enable-warnings --enable-werror --enable-debug --disable-ntlm
  271. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  272. --with-openssl=$HOME/openssl/build --with-openssl-quic
  273. --with-nghttp3=$HOME/nghttp3/build
  274. - name: quiche
  275. configure: >-
  276. LDFLAGS="-Wl,-rpath,$HOME/quiche/target/release"
  277. --with-openssl=$HOME/quiche/quiche/deps/boringssl/src
  278. --enable-warnings --enable-werror --enable-debug
  279. --with-quiche=$HOME/quiche/target/release
  280. --with-test-nghttpx="$HOME/nghttp2/build/bin/nghttpx"
  281. --with-ca-fallback
  282. - name: quiche
  283. PKG_CONFIG_PATH: '$HOME/quiche/target/release'
  284. generate: >-
  285. -DOPENSSL_ROOT_DIR=$HOME/quiche/quiche/deps/boringssl/src -DENABLE_DEBUG=ON
  286. -DUSE_QUICHE=ON
  287. -DTEST_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  288. -DHTTPD_NGHTTPX="$HOME/nghttp2/build/bin/nghttpx"
  289. -DCURL_CA_FALLBACK=ON
  290. steps:
  291. - run: |
  292. sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
  293. sudo apt-get update -y
  294. sudo apt-get install -y --no-install-suggests --no-install-recommends \
  295. libtool autoconf automake ninja-build pkgconf stunnel4 \
  296. libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libev-dev libc-ares-dev \
  297. nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin \
  298. libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools \
  299. texinfo texlive texlive-extra-utils autopoint libev-dev \
  300. apache2 apache2-dev libnghttp2-dev vsftpd
  301. python3 -m venv $HOME/venv
  302. echo 'CC=gcc-12' >> $GITHUB_ENV
  303. echo 'CXX=g++-12' >> $GITHUB_ENV
  304. name: 'install prereqs'
  305. - name: cache quictls
  306. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  307. id: cache-quictls-no-deprecated
  308. env:
  309. cache-name: cache-quictls-no-deprecated
  310. with:
  311. path: /home/runner/quictls/build
  312. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quictls-version }}
  313. fail-on-cache-miss: true
  314. - name: cache gnutls
  315. if: matrix.build.name == 'gnutls'
  316. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  317. id: cache-gnutls
  318. env:
  319. cache-name: cache-gnutls
  320. with:
  321. path: /home/runner/gnutls/build
  322. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.gnutls-version }}
  323. fail-on-cache-miss: true
  324. - name: cache wolfssl
  325. if: matrix.build.name == 'wolfssl'
  326. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  327. id: cache-wolfssl
  328. env:
  329. cache-name: cache-wolfssl
  330. wolfssl-version: ${{ needs.setup.outputs.wolfssl-version }}
  331. with:
  332. path: /home/runner/wolfssl/build
  333. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.wolfssl-version }}
  334. fail-on-cache-miss: true
  335. - name: cache nghttp3
  336. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  337. id: cache-nghttp3
  338. env:
  339. cache-name: cache-nghttp3
  340. with:
  341. path: /home/runner/nghttp3/build
  342. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp3-version }}
  343. fail-on-cache-miss: true
  344. - name: cache ngtcp2
  345. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  346. id: cache-ngtcp2
  347. env:
  348. cache-name: cache-ngtcp2
  349. with:
  350. path: /home/runner/ngtcp2/build
  351. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.ngtcp2-version }}
  352. fail-on-cache-miss: true
  353. - name: cache nghttp2
  354. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  355. id: cache-nghttp2
  356. env:
  357. cache-name: cache-nghttp2
  358. with:
  359. path: /home/runner/nghttp2/build
  360. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.nghttp2-version }}
  361. fail-on-cache-miss: true
  362. - name: cache openssl
  363. if: matrix.build.name == 'openssl-quic'
  364. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  365. id: cache-openssl
  366. env:
  367. cache-name: cache-openssl
  368. with:
  369. path: /home/runner/openssl/build
  370. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.openssl-version }}
  371. - name: 'install openssl'
  372. if: matrix.build.name == 'openssl-quic' && steps.cache-openssl.outputs.cache-hit != 'true'
  373. run: |
  374. git clone --quiet --depth=1 -b openssl-${{ env.openssl-version }} https://github.com/openssl/openssl
  375. cd openssl
  376. ./config --prefix=$HOME/openssl/build no-makedepend no-apps no-docs no-tests
  377. make
  378. make -j1 install_sw
  379. cat exporters/openssl.pc
  380. - name: cache quiche
  381. if: matrix.build.name == 'quiche'
  382. uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
  383. id: cache-quiche
  384. env:
  385. cache-name: cache-quiche
  386. with:
  387. path: /home/runner/quiche
  388. key: ${{ runner.os }}-http3-build-${{ env.cache-name }}-${{ env.quiche-version }}
  389. - if: matrix.build.name == 'quiche' && steps.cache-quiche.outputs.cache-hit != 'true'
  390. run: |
  391. cd $HOME
  392. git clone --quiet --depth=1 -b ${{ env.quiche-version }} --recursive https://github.com/cloudflare/quiche.git
  393. cd quiche
  394. #### Work-around https://github.com/curl/curl/issues/7927 #######
  395. #### See https://github.com/alexcrichton/cmake-rs/issues/131 ####
  396. sed -i -e 's/cmake = "0.1"/cmake = "=0.1.45"/' quiche/Cargo.toml
  397. cargo build -v --package quiche --release --features ffi,pkg-config-meta,qlog --verbose
  398. ln -s libquiche.so target/release/libquiche.so.0
  399. mkdir -v quiche/deps/boringssl/src/lib
  400. ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/
  401. # include dir
  402. # $HOME/quiche/quiche/deps/boringssl/src/include
  403. # lib dir
  404. # $HOME/quiche/quiche/deps/boringssl/src/lib
  405. name: 'build quiche and boringssl'
  406. - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
  407. with:
  408. persist-credentials: false
  409. - run: autoreconf -fi
  410. if: ${{ matrix.build.configure }}
  411. name: 'autoreconf'
  412. - name: 'configure'
  413. run: |
  414. if [ -n '${{ matrix.build.PKG_CONFIG_PATH }}' ]; then
  415. export PKG_CONFIG_PATH="${{ matrix.build.PKG_CONFIG_PATH }}"
  416. fi
  417. if [ -n '${{ matrix.build.generate }}' ]; then
  418. cmake -B . -G Ninja \
  419. -DCMAKE_C_COMPILER_TARGET=$(uname -m)-pc-linux-gnu -DBUILD_STATIC_LIBS=ON \
  420. -DCMAKE_UNITY_BUILD=ON -DCURL_TEST_BUNDLES=ON -DCURL_WERROR=ON \
  421. ${{ matrix.build.generate }}
  422. else
  423. ./configure --disable-dependency-tracking --enable-unity --enable-test-bundles --enable-warnings --enable-werror \
  424. ${{ matrix.build.configure }}
  425. fi
  426. - name: 'configure log'
  427. if: ${{ !cancelled() }}
  428. run: cat config.log CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
  429. - name: 'curl_config.h'
  430. run: |
  431. echo '::group::raw'; cat lib/curl_config.h || true; echo '::endgroup::'
  432. grep -F '#define' lib/curl_config.h | sort || true
  433. - name: 'test configs'
  434. run: |
  435. cat tests/config || true
  436. cat tests/http/config.ini || true
  437. - name: 'build'
  438. run: |
  439. if [ -n '${{ matrix.build.generate }}' ]; then
  440. cmake --build . --verbose
  441. else
  442. make V=1
  443. fi
  444. - run: ./src/curl -V
  445. name: 'check curl -V output'
  446. - name: 'build tests'
  447. run: |
  448. if [ -n '${{ matrix.build.generate }}' ]; then
  449. cmake --build . --verbose --target testdeps
  450. else
  451. make V=1 -C tests
  452. fi
  453. - name: 'install test prereqs'
  454. run: |
  455. source $HOME/venv/bin/activate
  456. python3 -m pip install -r tests/requirements.txt
  457. - name: 'run tests'
  458. env:
  459. TFLAGS: "${{ matrix.build.tflags }}"
  460. run: |
  461. source $HOME/venv/bin/activate
  462. if [ -n '${{ matrix.build.generate }}' ]; then
  463. cmake --build . --verbose --target test-ci
  464. else
  465. make V=1 test-ci
  466. fi
  467. - name: 'install pytest prereqs'
  468. run: |
  469. source $HOME/venv/bin/activate
  470. python3 -m pip install -r tests/http/requirements.txt
  471. - name: 'run pytest'
  472. env:
  473. TFLAGS: "${{ matrix.build.tflags }}"
  474. CURL_CI: github
  475. run: |
  476. source $HOME/venv/bin/activate
  477. if [ -n '${{ matrix.build.generate }}' ]; then
  478. cmake --build . --verbose --target curl-pytest-ci
  479. else
  480. make V=1 pytest-ci
  481. fi
  482. - name: 'build examples'
  483. run: |
  484. if [ -n '${{ matrix.build.generate }}' ]; then
  485. cmake --build . --verbose --target curl-examples
  486. else
  487. make V=1 examples
  488. fi