Skip to content

Commit aaa0c0c

Browse files
authored
Run add_arm_to_libomp_dylib.sh only on arm64 (#91)
1 parent f7b6300 commit aaa0c0c

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Diff for: .github/workflows/wheels.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,11 @@ jobs:
106106
# manually so that both x86 and arm builds can be built.
107107
run: |
108108
brew install coreutils
109-
brew install libomp
110-
sh add_arm_to_libomp_dylib.sh
109+
if [[ ${{ matrix.cibw_archs }} == "arm64" ]] ; then
110+
echo "Building universal libomp manually"
111+
brew install libomp
112+
sh add_arm_to_libomp_dylib.sh
113+
fi
111114
112115
- name: Build Wheels
113116
env:
@@ -127,7 +130,7 @@ jobs:
127130
CIBW_ENVIRONMENT_MACOS: BREW_LIBOMP="1" SUITESPARSE_MACOS_ARCH=${{ matrix.cibw_archs }}
128131

129132
# Uncomment to only build CPython wheels
130-
# CIBW_BUILD: "cp*"
133+
# CIBW_BUILD: "cp*"
131134

132135
# Architectures to build specified in matrix
133136
CIBW_ARCHS: ${{ matrix.cibw_archs }}
@@ -151,7 +154,9 @@ jobs:
151154
CIBW_TEST_COMMAND: "pytest --pyargs suitesparse_graphblas -s -k test_print_jit_config && pytest -v --pyargs suitesparse_graphblas"
152155

153156
# GitHub Actions macOS Intel runner cannot run ARM tests. Uncomment to silence warning.
154-
# CIBW_TEST_SKIP: "*-macosx_arm64"
157+
# CIBW_TEST_SKIP: "*-macosx_arm64"
158+
# XXX: tests are failing for macos_x86_64; let's see if we can figure out what's wrong by releasing a broken package... (sorry!)
159+
# CIBW_TEST_SKIP: "*-macosx_*"
155160

156161
run: |
157162
python -m pip install --upgrade pip
@@ -181,7 +186,7 @@ jobs:
181186
needs: [build_wheels, build_sdist]
182187
runs-on: ubuntu-latest
183188
if: github.repository == 'GraphBLAS/python-suitesparse-graphblas'
184-
# if: github.event_name == 'release' && github.event.action == 'published'
189+
# if: github.event_name == 'release' && github.event.action == 'published'
185190

186191
steps:
187192
- uses: actions/setup-python@v4
@@ -202,5 +207,5 @@ jobs:
202207
password: ${{ secrets.PYPI_TOKEN }}
203208

204209
# Test PyPI:
205-
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
206-
# repository_url: https://test.pypi.org/legacy/
210+
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
211+
# repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)