]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: fix and tidy up c-ares builds, enable in more CI jobs
authorViktor Szakats <commit@vsz.me>
Wed, 14 Aug 2024 09:07:01 +0000 (11:07 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 15 Aug 2024 07:44:52 +0000 (09:44 +0200)
commit9f23c8f201f55f1a148b41b16a5e71f3385faa5e
treedeafbe83e6d54df89f69a0e203a95823c1af382b
parent304a349e8c796791c47d77f3df9207c110cd0c30
cmake: fix and tidy up c-ares builds, enable in more CI jobs

- set `CARES_NO_DEPRECATED` to avoid c-ares deprecation warnings.
  Like autotools does.

- drop unused c-ares header directory when building libtests and test
  servers.

- disable TrackMemory (aka `CURLDEBUG`) feature for MSVC builds.
  It fails on test 558 and 1330, saying that TrackMemory isn't working.
  Left a FIXME about it.

- GHA/macos: enable c-ares in a cmake job.

- GHA/windows: enable c-ares in MSVC job.
  Fixes #14202

- GHA/windows: add c-ares mingw autotools job with tests.
  (move `--with-windows-unicode` option from 'default' job to
  this one to keep the former "default".)
  Put these tests on ignore for now:
  ```
  FAIL 472: 'aws-sigv4 with query' HTTP, aws-sigv4
  FAIL 1299: 'Send "OPTIONS *" with --request-target' HTTP, --request-target
  FAIL 1613: 'Send "OPTIONS *" with --request-target to a proxy' HTTP, HTTP proxy, --request-target
  ```
  Ref: https://github.com/curl/curl/actions/runs/10388126947/job/28765761441#step:15:5902

  472: fails with mingw despite Unicode enabled.
  1299, 1613: seem like a case of expanding '*' to a filename.

- GHA/windows: enable c-ares in mingw cmake job.

Closes #14541
.github/workflows/macos.yml
.github/workflows/windows.yml
CMakeLists.txt
tests/libtest/CMakeLists.txt
tests/server/CMakeLists.txt