ENH: Use ImageRegionRange iterator in ImageAlgorithm::Copy #2005
Workflow file for this run
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.Pixi | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - '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: | |
| Pixi-Cxx: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 0 | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, windows-2022, macos-15] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 5 | |
| clean: true | |
| - name: Disk space reporting BEFORE (optimize free-disk-space) | |
| run: | | |
| echo "****** df -h ${{ runner.temp }}" | |
| df -h "${{ runner.temp }}" | |
| echo "****** df -h" | |
| df -h | |
| echo "****** df -hi /" | |
| df -h / | |
| - name: Free Disk Space (Ubuntu) | |
| if: matrix.os == 'ubuntu-22.04' | |
| uses: BRAINSia/free-disk-space@v2 | |
| with: | |
| removalmode: "rmz" | |
| swap-storage: "true" | |
| haskell: "true" | |
| dotnet: "true" | |
| docker-images: "false" # Takes too long | |
| tool-cache: "true" | |
| android: "false" # Takes too long | |
| large-packages: "true" # Takes too long to remove apt-get packages | |
| mandb: "true" # Speeds up future apt-get installs (disables man page generation), this CI does not use apt-get | |
| # For ITK run with find | |
| # TIME_REPORT: ============================================================= | |
| # TIME_REPORT: swap-storage | 0 seconds | 4.0GiB | | |
| # TIME_REPORT: haskell | 10 seconds | 6.2GiB | | |
| # TIME_REPORT: dotnet | 27 seconds | 3.3GiB | | |
| # TIME_REPORT: docker-images | 81 seconds | 3.4GiB | | |
| # TIME_REPORT: tool-cache | 113 seconds | 5.3GiB | | |
| # TIME_REPORT: android | 295 seconds | 8.8GiB | | |
| # TIME_REPORT: root | 526 seconds | 27GiB | | |
| # TIME_REPORT: overall | 526 seconds | 31GiB | | |
| # TIME_REPORT: == find ==================================================== | |
| - name: Download testing data | |
| run: | | |
| 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: Set up Pixi | |
| uses: prefix-dev/[email protected] | |
| - name: Configure | |
| run: pixi run configure | |
| - name: Build | |
| run: | | |
| echo "****** df -h / -- pre build" | |
| df -h / | |
| pixi run --skip-deps build | |
| echo "****** df -h / -- post build" | |
| df -h / | |
| find build -type f -name "*.o" -delete | |
| find build -type f -name "*.a" -delete | |
| echo "****** df -h / -- post .o .a cleanup" | |
| df -h / | |
| - name: Test | |
| run: pixi run --skip-deps test | |
| - name: Disk space reporting AFTER (optimize free-disk-space) | |
| run: | | |
| echo "****** df -h ${{ runner.temp }}" | |
| df -h "${{ runner.temp }}" | |
| echo "****** df -h" | |
| df -h | |
| echo "****** df -h /" | |
| df -h / |