Skip to content

Commit 6563eec

Browse files
committed
COMP: Reduce build path for Windows Python packages builds
Avoid Visual Studio line length limitations for modules with a long name.
1 parent 816e281 commit 6563eec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

{{cookiecutter.project_name}}/.github/workflows/build-test-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ jobs:
199199

200200
steps:
201201
- uses: actions/checkout@v2
202+
with:
203+
path: "im"
202204

203205
- name: 'Install Python'
204206
run: |
@@ -209,6 +211,8 @@ jobs:
209211
- name: 'Fetch build dependencies'
210212
shell: bash
211213
run: |
214+
mv im ../../
215+
cd ../../
212216
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ "{{" }} matrix.itk-python-git-tag {{ "}}" }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
213217
7z x ITKPythonBuilds-windows.zip -o/c/P -aoa -r
214218
curl -L "https://data.kitware.com/api/v1/file/5c0ad59d8d777f2179dd3e9c/download" -o "doxygen-1.8.11.windows.bin.zip"
@@ -219,6 +223,7 @@ jobs:
219223
- name: 'Build 🐍 Python 📦 package'
220224
shell: cmd
221225
run: |
226+
cd ../../im
222227
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
223228
set PATH="C:\P\grep;%PATH%"
224229
set CC=cl.exe
@@ -229,7 +234,7 @@ jobs:
229234
uses: actions/upload-artifact@v1
230235
with:
231236
name: WindowWheel3.${{ "{{" }} matrix.python-version-minor {{ "}}" }}
232-
path: dist
237+
path: ../../im/dist
233238

234239
publish-python-packages-to-pypi:
235240
needs:

0 commit comments

Comments
 (0)