Skip to content

Commit 2be92fb

Browse files
committed
ci: macos: keep release to available xcode compatible
1 parent d36af13 commit 2be92fb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- os: macos-latest
3131
release: R2024b
3232
- os: macos-latest
33-
release: R2023a
33+
release: R2023b
3434
- os: windows-latest
3535
release: R2024b
3636
- os: windows-latest

buildfile.m

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,16 @@ function publishTask(context)
139139

140140
std = "-std=c++17";
141141
compiler_id = "";
142-
% FIXME: Windows oneAPI
142+
143143
if msvc
144144
std = "/std:c++17";
145+
% on Windows, Matlab doesn't register unsupported MSVC or oneAPI
145146
elseif ismac
146-
% keep for if-logic
147+
if cxx.Name == "Xcode Clang++"
148+
if isMATLABReleaseOlderThan("R2023b") && stdlib.version_atleast(cxx.Version, "15.0")
149+
warning("Xcode Clang++ " + cxx.Version + " may not support this Matlab version")
150+
end
151+
end
147152
elseif isunix && cxx.ShortName == "g++"
148153
% FIXME: update when desired GCC != 10 for newer Matlab
149154
if isMATLABReleaseOlderThan("R2025b") && ~startsWith(cxx.Version, "10")
@@ -153,7 +158,7 @@ function publishTask(context)
153158
if s == 0
154159
compiler_id = "CXX=g++-10";
155160
else
156-
warning("GCC 10 not found, using default GCC " + cxx.Version + " may fail on runtime")
161+
warning("GCC 10 not found. GCC " + cxx.Version + " may fail on runtime")
157162
end
158163
end
159164
end

0 commit comments

Comments
 (0)