Merge pull request #5427 from seanm/old-mac-workarounds #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ITK.macOS.Arm64 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 'release*' | |
| paths-ignore: | |
| - '*.md' | |
| - LICENSE | |
| - NOTICE | |
| - 'Documentation/**' | |
| - 'Utilities/Debugger/**' | |
| - 'Utilities/ITKv5Preparation/**' | |
| - 'Utilities/Maintenance/**' | |
| pull_request: | |
| paths-ignore: | |
| - '*.md' | |
| - LICENSE | |
| - NOTICE | |
| - 'Documentation/**' | |
| - 'Utilities/Debugger/**' | |
| - 'Utilities/ITKv5Preparation/**' | |
| - 'Utilities/Maintenance/**' | |
| concurrency: | |
| group: '${{ github.workflow }}@${{ github.head_ref || github.ref }}' | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| env: | |
| ExternalDataVersion: 5.4.0 | |
| jobs: | |
| macOS-Python: | |
| runs-on: macos-14 | |
| timeout-minutes: 0 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 5 | |
| clean: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| set -x | |
| python3 -m pip install --upgrade --pre numpy | |
| - name: Get specific version of CMake, latest Ninja | |
| uses: lukka/[email protected] | |
| with: | |
| cmakeVersion: "~4.0.1" | |
| ninjaVersion: latest | |
| - name: Download dashboard script and testing data | |
| run: | | |
| set -x | |
| git clone -b dashboard --single-branch https://github.com/InsightSoftwareConsortium/ITK.git ITK-dashboard | |
| curl -L https://github.com/InsightSoftwareConsortium/ITK/releases/download/v${{ env.ExternalDataVersion }}/InsightData-${{ env.ExternalDataVersion }}.tar.gz -O | |
| cmake -E tar xfz InsightData-${{ env.ExternalDataVersion }}.tar.gz | |
| cmake -E rename InsightToolkit-${{ env.ExternalDataVersion }}/.ExternalData/CID ${{ github.workspace }}/.ExternalData/CID | |
| - name: Configure CTest script | |
| run: | | |
| cat > ITK-dashboard/dashboard.cmake << EOF | |
| set(CTEST_BUILD_CONFIGURATION "Release") | |
| set(CTEST_CMAKE_GENERATOR "Ninja") | |
| set(dashboard_cache " | |
| BUILD_SHARED_LIBS:BOOL=OFF | |
| BUILD_EXAMPLES:BOOL=OFF | |
| ITK_WRAP_PYTHON:BOOL=ON | |
| ITK_USE_CLANG_FORMAT:BOOL=OFF | |
| ") | |
| include(${{ github.workspace }}/ITK-dashboard/github_actions_dashboard.cmake) | |
| EOF | |
| cat ITK-dashboard/dashboard.cmake | |
| - name: Build and test | |
| run: | | |
| set -x | |
| c++ --version | |
| cmake --version | |
| ctest -S ${{ github.workspace }}/ITK-dashboard/dashboard.cmake -VV -j 4 -E itkPyBufferMemoryLeakTest | |
| env: | |
| CTEST_OUTPUT_ON_FAILURE: 1 |