Skip to content

Commit c79015f

Browse files
committed
Still trying to remove the dot from the Python version
1 parent e371b6b commit c79015f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/build-vtk.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,29 +119,33 @@ jobs:
119119
cd ..\..\
120120
dir /s
121121
122+
- name: Prepare Python version string
123+
shell: bash -l {0}
124+
run: echo "PYTHON_VERSION_NO_DOTS=$(echo ${{ matrix.python-version }} | tr -d '.')" >> $GITHUB_ENV
125+
122126
- name: Rename MacOS ARM64 wheel
123127
shell: bash -l {0}
124-
if: ${{ matrix.os != 'macos-14' }}
128+
if: ${{ matrix.os == 'macos-14' }}
125129
run: |
126-
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-macosx_14_0_arm64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-macosx_14_0_arm64.whl
130+
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-macosx_14_0_arm64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-macosx_14_0_arm64.whl
127131
128132
- name: Rename MacOS AMD64 wheel
129133
shell: bash -l {0}
130-
if: ${{ matrix.os != 'macos-13' }}
134+
if: ${{ matrix.os == 'macos-13' }}
131135
run: |
132-
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-macosx_13_0_x86_64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-macosx_13_0_x86_64.whl
136+
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-macosx_13_0_x86_64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-macosx_13_0_x86_64.whl
133137
134138
- name: Rename Linux AMD64 wheel
135139
shell: bash -l {0}
136-
if: ${{ matrix.os != 'ubuntu-20.04' }}
140+
if: ${{ matrix.os == 'ubuntu-20.04' }}
137141
run: |
138-
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-linux_x86_64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-linux_x86_64.whl
142+
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-linux_x86_64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-linux_x86_64.whl
139143
140144
- name: Rename Windows AMD64 wheel
141145
shell: bash -l {0}
142-
if: ${{ matrix.os != 'windows-2019' }}
146+
if: ${{ matrix.os == 'windows-2019' }}
143147
run: |
144-
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-win_amd64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ matrix.python-version//./ }}-cp${{ matrix.python-version//./ }}-win_amd64.whl
148+
mv vtk/build/dist/vtk-9.2.6.dev0-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-win_amd64.whl vtk/build/dist/cadquery-vtk-9.2.6-cp${{ env.PYTHON_VERSION_NO_DOTS }}-cp${{ env.PYTHON_VERSION_NO_DOTS }}-win_amd64.whl
145149
146150
- name: Test wheel
147151
shell: bash -l {0}

0 commit comments

Comments
 (0)