5353 fetch-depth : 0
5454 submodules : " recursive"
5555
56+ - name : Sanitize matrix.cibw_build
57+ id : sanitize_build
58+ run : echo "CIBW_BUILD_SANITIZED=$(echo '${{ matrix.cibw_build }}' | sed 's/\*/_/g')" >> $GITHUB_ENV
59+ shell : bash
60+
5661 - name : Set up QEMU
5762 if : matrix.cibw_archs != 'x86_64'
5863 uses : docker/setup-qemu-action@v2
7479
7580 - uses : actions/upload-artifact@v4
7681 with :
77- name : wheels-${{ matrix.os }}-${{ replace(matrix.cibw_build, '-*', '' }}-${{ matrix.cibw_archs }}
82+ name : wheels-${{ matrix.os }}-${{ env.CIBW_BUILD_SANITIZED }}-${{ matrix.cibw_archs }}
7883 path : wheelhouse/*.whl
7984
8085 build_wheels_macos :
@@ -95,6 +100,11 @@ jobs:
95100 fetch-depth : 0
96101 submodules : " recursive"
97102
103+ - name : Sanitize matrix.cibw_build
104+ id : sanitize_build
105+ run : echo "CIBW_BUILD_SANITIZED=$(echo '${{ matrix.cibw_build }}' | sed 's/\*/_/g')" >> $GITHUB_ENV
106+ shell : bash
107+
98108 - name : Set up python 3.12
99109 uses : actions/setup-python@v5
100110 with :
@@ -126,7 +136,7 @@ jobs:
126136
127137 - uses : actions/upload-artifact@v4
128138 with :
129- name : wheels-${{ matrix.os }}-${{ replace(matrix.cibw_build, '-*', '' }}-${{ matrix.cibw_archs }}
139+ name : wheels-${{ matrix.os }}-${{ env.CIBW_BUILD_SANITIZED }}-${{ matrix.cibw_archs }}
130140 path : wheelhouse/*.whl
131141
132142 build_wheels_macos_arm64 :
@@ -145,6 +155,11 @@ jobs:
145155 fetch-depth : 0
146156 submodules : " recursive"
147157
158+ - name : Sanitize matrix.cibw_build
159+ id : sanitize_build
160+ run : echo "CIBW_BUILD_SANITIZED=$(echo '${{ matrix.cibw_build }}' | sed 's/\*/_/g')" >> $GITHUB_ENV
161+ shell : bash
162+
148163 - uses : actions/setup-python@v5
149164 with :
150165 python-version : " 3.12"
@@ -181,7 +196,7 @@ jobs:
181196
182197 - uses : actions/upload-artifact@v4
183198 with :
184- name : wheels-${{ matrix.os }}-${{ replace(matrix.cibw_build, '-*', '' }}-${{ matrix.cibw_archs }}
199+ name : wheels-${{ matrix.os }}-${{ env.CIBW_BUILD_SANITIZED }}-${{ matrix.cibw_archs }}
185200 path : ./wheelhouse/*.whl
186201
187202 upload_to_pypi :
0 commit comments