Skip to content

Commit 2c46d91

Browse files
authored
Update build-wheels.yml
1 parent aafb30c commit 2c46d91

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-wheels.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@ jobs:
9898
cp quippy/setup.py build/${QUIP_ARCH}
9999
./bin/gitversion --hash-only > build/${QUIP_ARCH}/VERSION
100100
echo "CIBW_ENVIRONMENT=$CIBW_ENVIRONMENT"
101-
python -m cibuildwheel --output-dir wheelhouse --archs $ARCHS build/${QUIP_ARCH}
101+
if [ "$RUNNER_OS" == "macOS" ]; then
102+
python -m cibuildwheel --output-dir wheelhouse --archs $ARCHS build/${QUIP_ARCH}
103+
else
104+
for CIBW_MANYLINUX_X86_64_IMAGE in manylinux2010 manylinux2014; do
105+
export CIBW_MANYLINUX_X86_64_IMAGE
106+
python -m cibuildwheel --output-dir wheelhouse --archs $ARCHS build/${QUIP_ARCH}
107+
done
108+
fi
102109
done
103110
env:
104111
CIBW_SKIP: cp27-* cp35-* cp36-* cp311-* pp* *musllinux*
@@ -139,4 +146,4 @@ jobs:
139146
twine upload wheelhouse/*.whl
140147
env:
141148
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
142-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
149+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)