-
Notifications
You must be signed in to change notification settings - Fork 21
CI: Use macos-15-intel runners for x86 builds #3770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Changes look ok but builds are failing? |
|
Yeah its conan being annoying, conan v1 by default doesn't recognize apple-clang 17.0 (needs to be patched in our CI) |
| def patch_conan() -> bool: | ||
| for site_dir in site.getsitepackages(): | ||
| conf_file = Path(site_dir) / "conans/client/conf/__init__.py" | ||
| if conf_file.exists(): | ||
| break | ||
| else: | ||
| print("No Conan config file found, skipping") | ||
| return False | ||
| content = conf_file.read_text() | ||
| old_version_string = """apple-clang: &apple_clang | ||
| version: ["5.0", "5.1", "6.0", "6.1", "7.0", "7.3", "8.0", "8.1", "9.0", "9.1", | ||
| "10.0", "11.0", "12.0", "13", "13.0", "13.1", "14", "14.0", "15", "15.0", "16", "16.0"]""" # noqa: E501 | ||
| new_version_string = """apple-clang: &apple_clang | ||
| version: ["15", "15.0", "16", "16.0","17", "17.0"]""" | ||
| content = content.replace(old_version_string, new_version_string) | ||
| conf_file.write_text(content) | ||
| print(f"Patched Conan config file {conf_file}") | ||
| return True | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely terrible and fragile, but it works.
| slicer<T>::template set<std::tuple<Dim, scipp::index>>( | ||
| self, to_dim_type(std::move(index)), data); | ||
| }); | ||
| c.def("__setitem__", [](T &self, std::tuple<std::string, py::slice> index, | ||
| const py::object &data) { | ||
| slicer<T>::template set(self, to_dim_type(std::move(index)), data); | ||
| slicer<T>::template set<std::tuple<Dim, py::slice>>( | ||
| self, to_dim_type(std::move(index)), data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compiler in macos-15-intel was complaining about this.
| commands: | ||
| - python -m pytest -v tests | ||
| - python cmake-package-test/build.py | ||
| - python cmake-package-test/build.py # [linux] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turn off cmake-package-test for macos and windows as it takes too long to build scipp twice in the CI.
|
All weekly builds passed https://github.com/scipp/scipp/actions/runs/18369820377 |
fixes #3755