curl/.github/workflows
Viktor Szakats e377c91766
GHA: add Linux and macOS mbedTLS jobs, fix issue
- update mbedTLS repo URL.
- switch local mbedTLS build to use CMake, and Ninja.
  CMake build is required to create and install mbedTLS `pkg-config`
  files. (as of v3.6.1)
  `-DCMAKE_POSITION_INDEPENDENT_CODE=ON` required to avoid this error
  when linking mbedtls to `libcurl.so`:
  ```
  /usr/bin/ld: /home/runner/mbedtls/lib/libmbedcrypto.a(cipher.c.o): warning: relocation against `mbedtls_cipher_base_lookup_table' in read-only section `.text'
  /usr/bin/ld: /home/runner/mbedtls/lib/libmbedtls.a(ssl_tls.c.o): relocation R_X86_64_PC32 against symbol `mbedtls_x509_crt_profile_suiteb' can not be used when making a shared object; recompile with -fPIC
  /usr/bin/ld: final link failed: bad value
  ```
  Ref: https://github.com/curl/curl/actions/runs/11245069259/job/31264386723#step:40:43
- make local mbedTLS build 10x smaller by omitting programs and tests.
- GHA/linux: fix cmake warning by adding `-B .` option.
- GHA/linux: add build-only cmake job for packaged mbedTLS (2.x).
- fix compiler warning when building with mbedTLS 2.x:
  ```
  /home/runner/work/curl/curl/lib/vtls/mbedtls.c:344:1: error: ‘mbed_cipher_suite_get_str’ defined but not used [-Werror=unused-function]
    344 | mbed_cipher_suite_get_str(uint16_t id, char *buf, size_t buf_size,
        | ^~~~~~~~~~~~~~~~~~~~~~~~~
  ```
  Ref: https://github.com/curl/curl/actions/runs/11244999065/job/31264168295#step:40:50

Also in preparation for #15193
Closes #15208
2024-10-09 02:46:01 +02:00
..
appveyor-status.yml GHA: add yamlcheck 2024-08-23 18:42:55 +02:00
checkdocs.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
checksrc.yml tests: enable additional ruff Python lint options 2024-10-04 14:03:17 -07:00
codeql-analysis.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
configure-vs-cmake.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
curl-for-win.yml GHA/curl-for-win: tidy up DOCKER_CONTENT_TRUST 2024-10-03 14:33:37 +02:00
distcheck.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
fuzz.yml CI: move Azure jobs to GHA, fix fallouts, sshserver, runtests tweaks 2024-09-16 10:00:17 +02:00
hacktoberfest-accepted.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
http3-linux.yml ci: update dependency ngtcp2/nghttp3 to v1.6.0 2024-10-06 22:59:24 +02:00
label.yml GHA: add yamlcheck 2024-08-23 18:42:55 +02:00
linux32.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
linux-old.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
linux.yml GHA: add Linux and macOS mbedTLS jobs, fix issue 2024-10-09 02:46:01 +02:00
macos.yml GHA: add Linux and macOS mbedTLS jobs, fix issue 2024-10-09 02:46:01 +02:00
non-native.yml GHA/non-native: fix OmniOS job to fail on tests 2024-10-05 20:38:00 +02:00
torture.yml CI: bump actions/checkout from 4.1.7 to 4.2.0 2024-10-01 15:21:36 +02:00
windows.yml GHA/windows: drop vcpkg shiftmedia-gnutls, replace with mbedtls 2024-10-08 22:19:28 +02:00