Skip to content

Commit

Permalink
label wheel with the macos version it is built from
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Dec 9, 2024
1 parent 30219ea commit eddcc52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ jobs:
- if: ${{ startsWith(inputs.platform-tag, 'manylinux') }}
run: echo CIBW_MANYLINUX_AARCH64_IMAGE=${{ format(env.CUSTOM_IMAGE_NAME, 'aarch64') }} >> $GITHUB_ENV

- if: ${{ startsWith(inputs.platform-tag, 'macosx') }}
run: echo MACOSX_DEPLOYMENT_TARGET=12.0 >> $GITHUB_ENV
- name: The macOS wheel is only backwards compatible with the macOS version it is built from
if: ${{ startsWith(inputs.platform-tag, 'macosx') }}
run: echo MACOSX_DEPLOYMENT_TARGET=$(sw_vers --productVersion | cut -d"." -f -2) >> $GITHUB_ENV

- uses: docker/login-action@v3
if: ${{ startsWith(inputs.platform-tag, 'manylinux') }}
Expand Down

0 comments on commit eddcc52

Please sign in to comment.