Skip to content

Commit 7b372fe

Browse files
committed
cicd/lib-build-and-push: combine windows owerwrite steps
1 parent af945d8 commit 7b372fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/lib-build-and-push.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ jobs:
164164
done
165165
echo "Resulted CIBW_BUILD: $CIBW_BUILD"
166166
echo "CIBW_BUILD=$CIBW_BUILD" >> $GITHUB_ENV
167-
168167
169-
- name: Prepare CIBW_BUILD for Windows
168+
- name: Overwrite for Windows
170169
if: runner.os == 'Windows'
171170
run: |
171+
##### Set CIBW_BUILD
172172
if ("${{ matrix.platform }}" -match "PyPy") {
173173
# Convert `inputs.target-wheels-python-versions` (3.11 3.12 3.13) into `pp311* pp312* pp313*`
174174
$cibw_build_patterns = (("${{ inputs.target-wheels-python-versions }}" -replace '\.') -split " " | ForEach-Object { "pp${_}*" }) -join " "
@@ -178,17 +178,17 @@ jobs:
178178
$cibw_build_patterns = (("${{ inputs.target-wheels-python-versions }}" -replace '\.') -split " " | ForEach-Object { "cp${_}*amd64" }) -join " "
179179
echo "CIBW_BUILD=$cibw_build_patterns" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
180180
}
181+
182+
##### Set CIBW_TEST_COMMAND_WINDOWS
183+
if ("${{ matrix.platform }}" -match "PyPy") {
184+
echo "CIBW_TEST_COMMAND_WINDOWS=" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
185+
}
181186
182187
- name: Overwrite for Linux PyPy
183188
if: runner.os == 'Linux' && matrix.platform == 'PyPy'
184189
run: |
185190
echo "CIBW_TEST_COMMAND_LINUX=" >> $GITHUB_ENV
186191
187-
- name: Overwrite for Windows PyPY
188-
if: runner.os == 'Windows' && matrix.platform == 'PyPy'
189-
run: |
190-
echo "CIBW_TEST_COMMAND_WINDOWS=" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
191-
192192
- name: Overwrite for MacOs
193193
if: runner.os == 'MacOs'
194194
run: |

0 commit comments

Comments
 (0)