@@ -51,138 +51,122 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
5151 # Only generate a subset of configurations in PRs.
5252 if not all :
5353 # Debian:
54- # - Bookworm using GCC 13: Release and Unity on linux/amd64, set
55- # the reference fee to 500.
56- # - Bookworm using GCC 15: Debug and no Unity on linux/amd64, enable
57- # code coverage (which will be done below).
58- # - Bookworm using Clang 16: Debug and no Unity on linux/arm64,
59- # enable voidstar.
60- # - Bookworm using Clang 17: Release and no Unity on linux/amd64,
61- # set the reference fee to 1000.
62- # - Bookworm using Clang 20: Debug and Unity on linux/amd64.
54+ # - Bookworm using GCC 13: Release on linux/amd64, set the reference
55+ # fee to 500.
56+ # - Bookworm using GCC 15: Debug on linux/amd64, enable code
57+ # coverage (which will be done below).
58+ # - Bookworm using Clang 16: Debug on linux/arm64, enable voidstar.
59+ # - Bookworm using Clang 17: Release on linux/amd64, set the
60+ # reference fee to 1000.
61+ # - Bookworm using Clang 20: Debug on linux/amd64.
6362 if os ["distro_name" ] == "debian" :
6463 skip = True
6564 if os ["distro_version" ] == "bookworm" :
6665 if (
6766 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "gcc-13"
6867 and build_type == "Release"
69- and "-Dunity=ON" in cmake_args
7068 and architecture ["platform" ] == "linux/amd64"
7169 ):
7270 cmake_args = f"-DUNIT_TEST_REFERENCE_FEE=500 { cmake_args } "
7371 skip = False
7472 if (
7573 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "gcc-15"
7674 and build_type == "Debug"
77- and "-Dunity=OFF" in cmake_args
7875 and architecture ["platform" ] == "linux/amd64"
7976 ):
8077 skip = False
8178 if (
8279 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "clang-16"
8380 and build_type == "Debug"
84- and "-Dunity=OFF" in cmake_args
8581 and architecture ["platform" ] == "linux/arm64"
8682 ):
8783 cmake_args = f"-Dvoidstar=ON { cmake_args } "
8884 skip = False
8985 if (
9086 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "clang-17"
9187 and build_type == "Release"
92- and "-Dunity=ON" in cmake_args
9388 and architecture ["platform" ] == "linux/amd64"
9489 ):
9590 cmake_args = f"-DUNIT_TEST_REFERENCE_FEE=1000 { cmake_args } "
9691 skip = False
9792 if (
9893 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "clang-20"
9994 and build_type == "Debug"
100- and "-Dunity=ON" in cmake_args
10195 and architecture ["platform" ] == "linux/amd64"
10296 ):
10397 skip = False
10498 if skip :
10599 continue
106100
107101 # RHEL:
108- # - 9 using GCC 12: Debug and Unity on linux/amd64.
109- # - 10 using Clang: Release and no Unity on linux/amd64.
102+ # - 9 using GCC 12: Debug on linux/amd64.
103+ # - 10 using Clang: Release on linux/amd64.
110104 if os ["distro_name" ] == "rhel" :
111105 skip = True
112106 if os ["distro_version" ] == "9" :
113107 if (
114108 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "gcc-12"
115109 and build_type == "Debug"
116- and "-Dunity=ON" in cmake_args
117110 and architecture ["platform" ] == "linux/amd64"
118111 ):
119112 skip = False
120113 elif os ["distro_version" ] == "10" :
121114 if (
122115 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "clang-any"
123116 and build_type == "Release"
124- and "-Dunity=OFF" in cmake_args
125117 and architecture ["platform" ] == "linux/amd64"
126118 ):
127119 skip = False
128120 if skip :
129121 continue
130122
131123 # Ubuntu:
132- # - Jammy using GCC 12: Debug and no Unity on linux/arm64.
133- # - Noble using GCC 14: Release and Unity on linux/amd64.
134- # - Noble using Clang 18: Debug and no Unity on linux/amd64.
135- # - Noble using Clang 19: Release and Unity on linux/arm64.
124+ # - Jammy using GCC 12: Debug on linux/arm64.
125+ # - Noble using GCC 14: Release on linux/amd64.
126+ # - Noble using Clang 18: Debug on linux/amd64.
127+ # - Noble using Clang 19: Release on linux/arm64.
136128 if os ["distro_name" ] == "ubuntu" :
137129 skip = True
138130 if os ["distro_version" ] == "jammy" :
139131 if (
140132 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "gcc-12"
141133 and build_type == "Debug"
142- and "-Dunity=OFF" in cmake_args
143134 and architecture ["platform" ] == "linux/arm64"
144135 ):
145136 skip = False
146137 elif os ["distro_version" ] == "noble" :
147138 if (
148139 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "gcc-14"
149140 and build_type == "Release"
150- and "-Dunity=ON" in cmake_args
151141 and architecture ["platform" ] == "linux/amd64"
152142 ):
153143 skip = False
154144 if (
155145 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "clang-18"
156146 and build_type == "Debug"
157- and "-Dunity=OFF" in cmake_args
158147 and architecture ["platform" ] == "linux/amd64"
159148 ):
160149 skip = False
161150 if (
162151 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "clang-19"
163152 and build_type == "Release"
164- and "-Dunity=ON" in cmake_args
165153 and architecture ["platform" ] == "linux/arm64"
166154 ):
167155 skip = False
168156 if skip :
169157 continue
170158
171159 # MacOS:
172- # - Debug and no Unity on macos/arm64.
160+ # - Debug on macos/arm64.
173161 if os ["distro_name" ] == "macos" and not (
174- build_type == "Debug"
175- and "-Dunity=OFF" in cmake_args
176- and architecture ["platform" ] == "macos/arm64"
162+ build_type == "Debug" and architecture ["platform" ] == "macos/arm64"
177163 ):
178164 continue
179165
180166 # Windows:
181- # - Release and Unity on windows/amd64.
167+ # - Release on windows/amd64.
182168 if os ["distro_name" ] == "windows" and not (
183- build_type == "Release"
184- and "-Dunity=ON" in cmake_args
185- and architecture ["platform" ] == "windows/amd64"
169+ build_type == "Release" and architecture ["platform" ] == "windows/amd64"
186170 ):
187171 continue
188172
@@ -209,18 +193,17 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
209193 ):
210194 continue
211195
212- # Enable code coverage for Debian Bookworm using GCC 15 in Debug and no
213- # Unity on linux/amd64
196+ # Enable code coverage for Debian Bookworm using GCC 15 in Debug on
197+ # linux/amd64
214198 if (
215199 f"{ os ['compiler_name' ]} -{ os ['compiler_version' ]} " == "gcc-15"
216200 and build_type == "Debug"
217- and "-Dunity=OFF" in cmake_args
218201 and architecture ["platform" ] == "linux/amd64"
219202 ):
220203 cmake_args = f"-Dcoverage=ON -Dcoverage_format=xml -DCODE_COVERAGE_VERBOSE=ON -DCMAKE_C_FLAGS=-O0 -DCMAKE_CXX_FLAGS=-O0 { cmake_args } "
221204
222205 # Generate a unique name for the configuration, e.g. macos-arm64-debug
223- # or debian-bookworm-gcc-12-amd64-release-unity .
206+ # or debian-bookworm-gcc-12-amd64-release.
224207 config_name = os ["distro_name" ]
225208 if (n := os ["distro_version" ]) != "" :
226209 config_name += f"-{ n } "
@@ -234,8 +217,6 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
234217 config_name += f"-{ build_type .lower ()} "
235218 if "-Dcoverage=ON" in cmake_args :
236219 config_name += "-coverage"
237- if "-Dunity=ON" in cmake_args :
238- config_name += "-unity"
239220
240221 # Add the configuration to the list, with the most unique fields first,
241222 # so that they are easier to identify in the GitHub Actions UI, as long
0 commit comments