11name : build-wheels
2- description : Build Slicer LayerDM and Slicer LayerDM SDK for given platform
32
43on :
54 workflow_call :
65 inputs :
76 os :
8- description : ' OS to run on, must be one of supported runner type'
7+ description : " OS to run on, must be one of supported runner type"
98 required : true
109 type : string
1110 build-target :
12- description : ' CIBW build target (e.g., cp310-manylinux_x86_64)'
11+ description : " CIBW build target (e.g., cp310-manylinux_x86_64)"
1312 required : true
1413 type : string
1514 python-version :
16- description : ' CIBW build target (e.g., 3.10)'
15+ description : " CIBW build target (e.g., 3.10)"
1716 required : true
1817 type : string
1918 platform-tag :
20- description : ' Wheel platform tag to apply after building.'
19+ description : " Wheel platform tag to apply after building."
2120 required : true
2221 type : string
2322
2423jobs :
2524 build-test :
2625 runs-on : ${{ inputs.os }}
27-
26+
2827 env :
28+ PIP_EXTRA_INDEX_URL : " https://vtk.org/files/wheel-sdks"
2929 CIBW_BUILD : ${{ inputs.build-target }}
3030 # Install a compiler cache on each platform
3131 CIBW_BEFORE_ALL_LINUX : " yum install -y mesa-libGL-devel glx-utils freeglut-devel"
@@ -38,35 +38,34 @@ jobs:
3838 cp $(dirname {wheel})/slicer_core*.whl {dest_dir}"
3939
4040 steps :
41- # Build and test wheels
42- - uses : actions/checkout@v4
41+ # Build and test wheels
42+ - uses : actions/checkout@v4
4343
44- # This python is used to patch the project, not to build!
45- - name : Set up Python
46- uses : actions/setup-python@v5
47- with :
48- python-version : ${{ inputs.python-version }}
44+ # This python is used to patch the project, not to build!
45+ - name : Set up Python
46+ uses : actions/setup-python@v5
47+ with :
48+ python-version : ${{ inputs.python-version }}
4949
50- - name : Build wheel
51- uses : pypa/cibuildwheel@v3.3.1
52- env :
53- CIBW_TEST_COMMAND : " python -m pytest {project}/LayerDM -m runtime --verbose"
54- with :
55- package-dir : LayerDM
56- output-dir : wheelhouse
50+ - name : Build wheel
51+ uses : pypa/cibuildwheel@v3.3.1
52+ env :
53+ CIBW_TEST_COMMAND : " python -m pytest {project}/LayerDM -m runtime --verbose"
54+ with :
55+ package-dir : LayerDM
56+ output-dir : wheelhouse
5757
58- - name : Build wheel SDK
59- uses : pypa/cibuildwheel@v3.3.1
60- env :
61- CIBW_TEST_COMMAND : " python -m pytest {project}/LayerDM -m sdk --verbose"
62- with :
63- package-dir : LayerDMSDK
64- output-dir : wheelhouse
58+ - name : Build wheel SDK
59+ uses : pypa/cibuildwheel@v3.3.1
60+ env :
61+ CIBW_TEST_COMMAND : " python -m pytest {project}/LayerDM -m sdk --verbose"
62+ with :
63+ package-dir : LayerDMSDK
64+ output-dir : wheelhouse
6565
66- - name : Upload wheels
67- uses : actions/upload-artifact@v4
68- with :
69- name : slicer_layer_md-${{ inputs.build-target }}
70- path :
71- wheelhouse/slicer_layer_md-*.whl
72- wheelhouse/slicer_layer_md_sdk-*.whl
66+ - name : Upload wheels
67+ uses : actions/upload-artifact@v4
68+ with :
69+ name : slicer_layer_md-${{ inputs.build-target }}
70+ path : wheelhouse/slicer_layer_md-*.whl
71+ wheelhouse/slicer_layer_md_sdk-*.whl
0 commit comments