Skip to content
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

Merged
merged 5 commits into from
Apr 11, 2024

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Mar 14, 2024

No description provided.

@github-actions github-actions bot added the type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots label Mar 14, 2024
@thewtex thewtex force-pushed the macos-arm-ci branch 2 times, most recently from 71636be to d2548db Compare March 14, 2024 22:10
@thewtex thewtex force-pushed the macos-arm-ci branch 7 times, most recently from 9e9a4e0 to 10ed6f0 Compare April 9, 2024 11:46
@blowekamp
Copy link
Member

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

@thewtex
Copy link
Member Author

thewtex commented Apr 9, 2024

@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
@github-actions github-actions bot added area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module area:ThirdParty Issues affecting the ThirdParty module labels Apr 9, 2024
@thewtex thewtex force-pushed the macos-arm-ci branch 2 times, most recently from 4025693 to d12f341 Compare April 9, 2024 20:16
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.
@github-actions github-actions bot added type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct type:Data Changes to testing data labels Apr 9, 2024
@thewtex thewtex changed the title WIP: ENH: Add macOS ARM GitHub Actions configuration ENH: Add macOS ARM GitHub Actions configuration Apr 10, 2024
@thewtex thewtex marked this pull request as ready for review April 10, 2024 06:06
@thewtex thewtex requested a review from hjmjohnson April 10, 2024 06:06
@thewtex thewtex requested a review from seanm April 10, 2024 06:06
Uses new GitHub Actions dashboard script
@github-actions github-actions bot added the type:Enhancement Improvement of existing methods or implementation label Apr 10, 2024
@thewtex thewtex requested a review from phcerdan April 10, 2024 15:10
@@ -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>")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@thewtex thewtex merged commit 21e3edd into InsightSoftwareConsortium:master Apr 11, 2024
13 checks passed
@thewtex thewtex deleted the macos-arm-ci branch April 11, 2024 00:30
N-Dekker added a commit to SuperElastix/elastix that referenced this pull request May 7, 2024
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
N-Dekker added a commit to SuperElastix/elastix that referenced this pull request May 7, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module area:ThirdParty Issues affecting the ThirdParty module type:Data Changes to testing data type:Enhancement Improvement of existing methods or implementation type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants