mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
Update apple-clang job matrix
Specify that `std::format` is supported for Xcode 16.1.
This commit is contained in:
17
.github/generate-job-matrix.py
vendored
17
.github/generate-job-matrix.py
vendored
@ -53,7 +53,9 @@ def make_clang_config(
|
||||
return Configuration(**vars(ret))
|
||||
|
||||
|
||||
def make_apple_clang_config(os: str, version: str) -> Configuration:
|
||||
def make_apple_clang_config(
|
||||
os: str, version: str, std_format_support: bool
|
||||
) -> Configuration:
|
||||
ret = Configuration(
|
||||
name=f"Apple Clang {version}",
|
||||
os=os,
|
||||
@ -64,7 +66,7 @@ def make_apple_clang_config(os: str, version: str) -> Configuration:
|
||||
cxx="clang++",
|
||||
),
|
||||
cxx_modules=False,
|
||||
std_format_support=False,
|
||||
std_format_support=std_format_support,
|
||||
)
|
||||
return ret
|
||||
|
||||
@ -95,8 +97,15 @@ configs = {
|
||||
# arm64 runners are expensive; only consider one version
|
||||
if ver == 18 or platform != "arm64"
|
||||
]
|
||||
+ [make_apple_clang_config("macos-13", ver) for ver in ["15.2"]]
|
||||
+ [make_apple_clang_config("macos-14", ver) for ver in ["16.1"]]
|
||||
+ [
|
||||
make_apple_clang_config("macos-13", ver, std_format_support=False)
|
||||
for ver in ["15.2"]
|
||||
]
|
||||
# std::format is available in Xcode 16.1 or later
|
||||
+ [
|
||||
make_apple_clang_config("macos-14", ver, std_format_support=True)
|
||||
for ver in ["16.1"]
|
||||
]
|
||||
+ [make_msvc_config(release="14.4", version=194)]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user