diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 0c0ba85..a570ed8 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -52,7 +52,7 @@ jobs: run: | pip install dist/*.whl pytest multipers/tests - - name: Auditwheel on linux + - name: Fix wheels on Linux and Macos shell: bash -el {0} run: | if [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then @@ -66,6 +66,17 @@ jobs: mv wheelhouse/*.whl . # retrieves repaired wheels cd .. fi + if [[ ${{ matrix.os }} == "macos-latest" ]]; then + cd dist + pip install delocate --upgrade + for wheel_file in multipers*macosx*.whl; do + delocate-listdeps $wheel_file + delocate-wheel --require-archs x86_64 -w wheelhouse -v $wheel_file + rm $wheel_file + done + mv wheelhouse/*.whl . # retrieves repaired wheels + cd .. + fi - name: Upload sources and wheel uses: actions/upload-artifact@v3