ci: register the detected apple-clang version with conan on macOS

Conan's bundled settings.yml does not yet list apple-clang 21, so the
macOS runner failed at profile validation on every branch.
This commit is contained in:
Nicholas Dudfield
2026-09-23 21:53:26 +07:00
parent 067ad43b36
commit 73594d1bb3

View File

@@ -120,6 +120,13 @@ runs:
# Add macOS-specific conf if needed
if [ "${{ inputs.os }}" = "Macos" ]; then
# Conan's built-in settings.yml lags new Xcode releases; register the
# detected apple-clang version so the profile validates.
cat > ~/.conan2/settings_user.yml <<EOF
compiler:
apple-clang:
version: ["${{ inputs.compiler_version }}"]
EOF
cat >> ~/.conan2/profiles/default <<EOF
[conf]