1212 description : ' VTK version to use, must match the one in pyproject.toml'
1313 required : true
1414 type : string
15- python-version :
16- description : ' Python version to set up (e.g., 3.10)'
17- required : true
18- type : string
19- build-target :
15+ build-targets :
2016 description : ' CIBW build target (e.g., cp310-manylinux_x86_64)'
2117 required : true
2218 type : string
23- wheel -tag :
24- description : ' Wheel tag to apply after building. Ignored on Windows.'
19+ platform -tag :
20+ description : ' Wheel platform tag to apply after building. Ignored on Windows.'
2521 required : true
2622 type : string
2723 macosx-deployment-target :
4642
4743 env :
4844 MACOSX_DEPLOYMENT_TARGET : ${{ inputs.macosx-deployment-target }}
49- CIBW_BUILD : ${{ inputs.build-target }}
45+ CIBW_BUILD : ${{ inputs.build-targets }}
5046 # cibuildwheel creates a docker container for building our wheel
5147 # This is all the required steps to use host ccache correctly
5248 # Note that this is only needed on linux, as Mac and Windows do not use docker containers
@@ -69,11 +65,11 @@ jobs:
6965 # SlicerCore uses extensive CMake logic to package everything as needed, do not try this at home!
7066 CIBW_REPAIR_WHEEL_COMMAND_LINUX : "
7167 python -m pip install wheel &&
72- python -m wheel tags --platform-tag ${{ inputs.wheel -tag }} --remove {wheel} &&
68+ python -m wheel tags --platform-tag ${{ inputs.platform -tag }} --remove {wheel} &&
7369 cp $(dirname {wheel})/slicer_core*.whl {dest_dir}"
7470 CIBW_REPAIR_WHEEL_COMMAND_MACOS : "
7571 python -m pip install wheel &&
76- python -m wheel tags --platform-tag ${{ inputs.wheel -tag }} --remove {wheel} &&
72+ python -m wheel tags --platform-tag ${{ inputs.platform -tag }} --remove {wheel} &&
7773 cp $(dirname {wheel})/slicer_core*.whl {dest_dir}"
7874
7975 steps :
@@ -122,14 +118,6 @@ jobs:
122118 - uses : ilammy/msvc-dev-cmd@v1.13.0
123119 if : ${{ !inputs.dry-run }}
124120
125- - name : Set up Python ${{ inputs.python-version }}
126- if : ${{ !inputs.dry-run }}
127- uses : actions/setup-python@v5
128- with :
129- python-version : ${{ inputs.python-version }}
130- cache : ' pip'
131- cache-dependency-path : ' pyproject.toml'
132-
133121 - name : Apply patch
134122 if : ${{ !inputs.dry-run }}
135123 run : python apply_patch.py && python set_vtk_version.py ${{ inputs.vtk-tag }}
@@ -147,15 +135,15 @@ jobs:
147135 if : ${{ inputs.dry-run && runner.os != 'Windows' }}
148136 run : |
149137 mkdir wheelhouse
150- zip wheelhouse/slicer_core-0.0.1-${{ inputs.python-version }}-${{ inputs.wheel -tag }}.whl README.md
151- zip wheelhouse/slicer_core_sdk-0.0.1-${{ inputs.python-version }}-${{ inputs.wheel -tag }}.whl README.md
138+ zip wheelhouse/slicer_core-0.0.1-${{ inputs.platform -tag }}.whl README.md
139+ zip wheelhouse/slicer_core_sdk-0.0.1-${{ inputs.platform -tag }}.whl README.md
152140
153141 - name : Dry-run create wheels
154142 if : ${{ inputs.dry-run && runner.os == 'Windows' }}
155143 run : |
156144 mkdir wheelhouse
157- Compress-Archive -Path README.md -DestinationPath wheelhouse/slicer_core-0.0.1-${{ inputs.python-version }}-${{ inputs.wheel -tag }}.whl
158- Compress-Archive -Path README.md -DestinationPath wheelhouse/slicer_core_sdk-0.0.1-${{ inputs.python-version }}-${{ inputs.wheel -tag }}.whl
145+ Compress-Archive -Path README.md -DestinationPath wheelhouse/slicer_core-0.0.1-${{ inputs.platform -tag }}.whl
146+ Compress-Archive -Path README.md -DestinationPath wheelhouse/slicer_core_sdk-0.0.1-${{ inputs.platform -tag }}.whl
159147
160148 - name : ccache stats (after Runtime build)
161149 if : ${{ inputs.use-cache && !inputs.dry-run }}
@@ -164,7 +152,7 @@ jobs:
164152 - name : Upload wheel artifact
165153 uses : actions/upload-artifact@v4
166154 with :
167- name : slicer_core-${{ inputs.python-version }}-${{ inputs.build-target }}
155+ name : slicer_core-${{ matrix.os }}
168156 path : wheelhouse/slicer_core-*.whl
169157
170158 - name : Build wheel SDK
@@ -183,7 +171,7 @@ jobs:
183171 - name : Upload wheel SDK artifact
184172 uses : actions/upload-artifact@v4
185173 with :
186- name : slicer_core_sdk-${{ inputs.python-version }}-${{ inputs.build-target }}
174+ name : slicer_core_sdk-${{ matrix.os }}
187175 path : wheelhouse/slicer_core_sdk-*.whl
188176
189177 - name : Save ccache
0 commit comments