curl/.github/workflows
Viktor Szakats 4d8ab1f1b8
GHA/macos: let gcc dictate the configured Apple SDK
As discovered earlier, Homebrew gcc is built against a specific Apple
SDK version and doesn't work when matched up with a different version,
e.g. the one advertised as default by the macos runner image.

Before this patch this was resolved with brute force by zapping the
hack-layer gcc component to avoid the bad interference. This worked
for us, but it's fragile, accidental and doesn't translate to
real-world build environments. Thus, impractical.

Avoid this by explicitly selecting the SDK version gcc was built for and
meant to be used with, as shown by `gcc --print-sysroot`.

It assumes that the gcc binaries preinstalled on the runner images
always ship with the SDK version they reference. It also assumes
this works with and without `brew update`.

Also:
- add 4 quick build-only jobs to test all gcc/macos combos.
- list SDKs offered via CommandLineTools.

Suggested-by: Bo Anderson
Ref: https://github.com/Homebrew/homebrew-core/issues/194778#issuecomment-2462764619

Follow-up to c349bd668c #14097
Closes #15518
2024-11-08 10:48:12 +01:00
..
appveyor-status.yml GHA: add yamlcheck 2024-08-23 18:42:55 +02:00
checkdocs.yml GHA: add apt update where missing 2024-11-08 10:48:11 +01:00
checksrc.yml GHA: add apt update where missing 2024-11-08 10:48:11 +01:00
codeql-analysis.yml GHA: update five dependencies 2024-10-24 10:03:31 +02:00
configure-vs-cmake.yml GHA: update five dependencies 2024-10-24 10:03:31 +02:00
curl-for-win.yml GHA: update five dependencies 2024-10-24 10:03:31 +02:00
distcheck.yml GHA: update five dependencies 2024-10-24 10:03:31 +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 GHA: update five dependencies 2024-10-24 10:03:31 +02:00
http3-linux.yml GHA: update five dependencies 2024-10-24 10:03:31 +02:00
label.yml GHA: add yamlcheck 2024-08-23 18:42:55 +02:00
linux-old.yml GHA/linux-old: adjust configure job name 2024-10-31 13:26:27 +01:00
linux.yml mbedtls: call psa_crypt_init() in global init 2024-11-07 13:14:41 +01:00
macos.yml GHA/macos: let gcc dictate the configured Apple SDK 2024-11-08 10:48:12 +01:00
non-native.yml GHA/non-native: fix installing OpenLDAP on OpenBSD 2024-11-06 02:42:09 +01:00
windows.yml GHA/windows: avoid curl.exe libtool wrapper 2024-10-29 09:20:37 +01:00