Skip to content

Commit

Permalink
Set MacOS target version to fix delocate errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbogd committed Jul 31, 2024
1 parent d02ecbc commit 2478575
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,19 @@ jobs:
with:
python-version: "3.10"

- run: |
- name: Save GitHub variables as environment variables
run: |
echo "REF_NAME=${{github.ref_name}}" | tee -a $GITHUB_ENV
echo "EVENT_NAME=${{github.event_name}}" | tee -a $GITHUB_ENV
echo "PRERELEASE=${{github.event.release.prerelease}}" | tee -a $GITHUB_ENV
echo "TAG_NAME=${{github.event.release.tag_name}}" | tee -a $GITHUB_ENV
echo "COMMIT_HEAD=${{github.ref_name != '' && github.ref_name || env.GITHUB_SHA}}" | tee -a $GITHUB_ENV
- name: Build wheels on ${{ matrix.os }}
if: ${{ !startsWith(matrix.os, 'macos') }}
uses: pypa/[email protected]
env:
CIBW_BEFORE_ALL: sh -c "./python/install-hyperonc.sh -u https://github.com/${{github.repository}}.git -r ${{env.COMMIT_HEAD}}"
with:
package-dir: ./python

- name: Build wheels on ${{ matrix.os }}
if: ${{ startsWith(matrix.os, 'macos') }}
uses: pypa/[email protected]
env:
CIBW_BEFORE_ALL: sh -c "./python/install-hyperonc.sh -u https://github.com/${{github.repository}}.git -r ${{env.COMMIT_HEAD}}"
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d '.' -f 1-2)
with:
package-dir: ./python

Expand Down

0 comments on commit 2478575

Please sign in to comment.