-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
ENH: Add macOS ARM GitHub Actions configuration #4519
ENH: Add macOS ARM GitHub Actions configuration #4519
Conversation
71636be
to
d2548db
Compare
9e9a4e0
to
10ed6f0
Compare
FYI: I have not been able to build simpleITK on this GH hosted runner as it has 3 cores and only 7GB of memory: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners |
@blowekamp the SimpleITK build runs out of memory when linking? |
Fix CLANG_FORMAT_EXECUTABLE location with find_program to address: CMake Error at CMake/ITKClangFormatSetup.cmake:62 (message): Missing suitable clang-format executable, set CLANG_FORMAT_EXECUTABLE variable to version 8.0 Call Stack (most recent call first): CMakeLists.txt:586 (include) Improve host system detection for the clang-format binary download.
Addresses: 3.29.0/share/cmake/Modules/CMakeDependentOption.cmake:89 (message): Policy CMP0127 is not set: cmake_dependent_option() supports full Condition Syntax. Run "cmake --help-policy CMP0127" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:107 (cmake_dependent_option) This warning is for project developers. Use -Wno-dev to suppress it. Submitted upstream: zlib-ng/zlib-ng#1709
4025693
to
d12f341
Compare
Addresses: ld: warning: ignoring duplicate libraries: '-lm' With Apple Clang 15. This approach works with older CMake but based on: https://gitlab.kitware.com/cmake/cmake/-/commit/7b99c42e57b11afe818827ac537ca020c020addd
Slight differences on this platform.
Uses new GitHub Actions dashboard script
@@ -209,6 +209,7 @@ set(BASELINE "${ITK_DATA_ROOT}/Baseline/Common") | |||
set(TEMP ${ITK_TEST_OUTPUT_DIR}) | |||
|
|||
add_executable(itkMathTest itkMathTest.cxx) | |||
target_link_options(itkMathTest PRIVATE "$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>") |
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.
Thank you!
Upgraded ITK on the CI to version 5.4rc04: https://github.com/InsightSoftwareConsortium/ITK/releases/tag/v5.4rc04 (commits from 2024-04-06 to 2024-04-16: InsightSoftwareConsortium/ITK@v5.4rc03...v5.4rc04) Including pull request InsightSoftwareConsortium/ITK#4519 commit InsightSoftwareConsortium/ITK@7231bf7 which suppresses clang "ld: warning: ignoring duplicate libraries: '-lm'". Follow-up to pull request #1089 commit 095ebcc
Upgraded ITK on the CI to version 5.4rc04: https://github.com/InsightSoftwareConsortium/ITK/releases/tag/v5.4rc04 (commits from 2024-04-06 to 2024-04-16: InsightSoftwareConsortium/ITK@v5.4rc03...v5.4rc04) Including pull request InsightSoftwareConsortium/ITK#4519 commit InsightSoftwareConsortium/ITK@7231bf7 which suppresses clang "ld: warning: ignoring duplicate libraries: '-lm'". Follow-up to pull request #1089 commit 095ebcc
No description provided.