Skip to content

Commit af945d8

Browse files
committed
cicd/lib-build-and-push: combine macos overrwrite actions
1 parent 08c9f63 commit af945d8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
echo "CIBW_TEST_COMMAND_WINDOWS=" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
191191
192192
- name: Overwrite for MacOs
193-
if: runner.os == 'MacOs' && matrix.platform == 'all'
193+
if: runner.os == 'MacOs'
194194
run: |
195195
if [ "${{ matrix.os }}" == "macos-13" ]; then
196196
echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> $GITHUB_ENV;
@@ -201,11 +201,10 @@ jobs:
201201
else
202202
echo "Unknown macos version" && false;
203203
fi
204-
205-
- name: Overwrite for MacOs PyPy
206-
if: runner.os == 'MacOs' && matrix.platform == 'PyPy'
207-
run: |
208-
echo "CIBW_TEST_COMMAND_MACOS=" >> $GITHUB_ENV
204+
205+
if [[ "${{ matrix.platform }}" == "PyPy" ]]; then
206+
echo "CIBW_TEST_COMMAND_MACOS=" >> $GITHUB_ENV
207+
fi
209208
210209
- name: Build wheels
211210
run: |

0 commit comments

Comments
 (0)