Skip to content

Commit

Permalink
Update Xcode versions for apple-clang builds
Browse files Browse the repository at this point in the history
Since mp-units requires at least Xcode 15 we should have coverage on the
latest compilers for operating system versions for macOS 13 (Ventura)
and macOS 14 (Sequoia) as those are the operating systems with necessary
compilers that our users would be using.

Now build with Xcode 15.2 instead of 15.0.1 which last version supported
on macOS 13.

Add a build for Xcode 15.4 and Xcode 16.1 for testing macOS 14 builds.
Since Xcode 16.1 is new most of our clients using macOS 14 would might
more likely be using Xcode 15.4.

There might not be much C++ changes between Xcode 15.2 and Xcode 15.4 so
perhaps we should drop 15.4 if adding three apple-clang builds is not
worth the resources.
  • Loading branch information
rothmichaels committed Nov 28, 2024
1 parent febdaec commit 4cf2ff5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/generate-job-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ def make_clang_config(
return Configuration(**vars(ret))


def make_apple_clang_config(version: int) -> Configuration:
def make_apple_clang_config(os: str, version: str) -> Configuration:
ret = Configuration(
name=f"Apple Clang {version}",
os="macos-13",
os=os,
compiler=Compiler(
type="APPLE_CLANG",
version=f"{version}.0",
version=version,
cc="clang",
cxx="clang++",
),
Expand Down Expand Up @@ -95,7 +95,8 @@ def make_msvc_config(release: str, version: int) -> Configuration:
# arm64 runners are expensive; only consider one version
if ver == 18 or platform != "arm64"
]
+ [make_apple_clang_config(ver) for ver in [15]]
+ [make_apple_clang_config("macos-13", ver) for ver in ["15.2"]]
+ [make_apple_clang_config("macos-14", ver) for ver in ["15.4", "16.1"]]
+ [make_msvc_config(release="14.4", version=194)]
}

Expand Down

0 comments on commit 4cf2ff5

Please sign in to comment.