Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tries inline delocation
Browse files Browse the repository at this point in the history
holm10 committed Mar 11, 2024
1 parent e0fe6a5 commit 4404efa
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest] #, macos-13, macos-12, ubuntu-20.04]
pyversions: ['3.11', '3.10', '3.9', '3.8', '3.7',]
pyversions: ['3.11'] #, '3.10', '3.9', '3.8', '3.7',]

steps:
- uses: actions/checkout@v4
@@ -41,10 +41,34 @@ jobs:
- name: Build wheels
run: python -m build

- uses: actions/upload-artifact@v4
- name: Delocate macOS wheels
if: runner.os == 'macOS'
run: |
pip install delocate
mkdir delocated_wheels
delocate-wheel -w delocated_wheels dist/*.whl
- name: Delocate Linux wheels
if: runner.os == 'Linux'
run: |
pip install auditwheel
cd dist
auditwheel repair *.whl
- name: Upload maxOS wheels
if: runner.os == 'macOS'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.pyversions }}
path: dist/*.whl
path: delocated_wheels/*.whl

- name: Upload Linux wheels
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.pyversions }}
path: wheelhouse/*.whl



build_arm_wheels:
@@ -53,8 +77,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-13-arm64]
pyversions: ['3.11', '3.10'] #, '3.9', '3.8', '3.7',]
os: [macos-14] #, macos-13-arm64]
pyversions: ['3.11'] #, '3.10']

steps:
- uses: actions/checkout@v4
@@ -83,11 +107,18 @@ jobs:
- name: Build wheels
run: python -m build

- uses: actions/upload-artifact@v4
- name: Delocate macOS wheels
run: |
pip install delocate
mkdir delocated_wheels
delocate-wheel -w delocated_wheels dist/*.whl
- name: Upload maxOS wheels
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.pyversions }}
path: dist/*.whl

path: delocated_wheels/*.whl


gather_wheels:

0 comments on commit 4404efa

Please sign in to comment.