Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit manylinux2010 (EOL) from build-wheels #650

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.19.1

- name: Build wheels
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
Expand Down Expand Up @@ -97,26 +97,20 @@ jobs:
./bin/gitversion --hash-only > build/${QUIP_ARCH}/VERSION
echo "CIBW_ENVIRONMENT=$CIBW_ENVIRONMENT"
if [ "$RUNNER_OS" == "macOS" ]; then
export CIBW_SKIP="cp27-* cp35-* cp36-* pp*"
python -m cibuildwheel --output-dir wheelhouse --archs $ARCHS build/${QUIP_ARCH}
else
for CIBW_MANYLINUX_X86_64_IMAGE in manylinux2010 manylinux2014; do
if [ "$CIBW_MANYLINUX_X86_64_IMAGE" == "manylinux2010" ]; then
export CIBW_SKIP="cp27-* cp35-* cp36-* cp310-* cp311-* pp* *musllinux*"
else
export CIBW_SKIP="cp27-* cp35-* cp36-* pp* *musllinux*"
fi
export CIBW_MANYLINUX_X86_64_IMAGE
python -m cibuildwheel --output-dir wheelhouse --archs $ARCHS build/${QUIP_ARCH}
done
fi
export CIBW_SKIP="cp27-* cp35-* cp36-* pp*"
python -m cibuildwheel --output-dir wheelhouse --archs $ARCHS build/${QUIP_ARCH}
else
export CIBW_MANYLINUX_X86_64_IMAGE="manylinux2014"
export CIBW_SKIP="cp27-* cp35-* cp36-* pp* *musllinux*"
python -m cibuildwheel --output-dir wheelhouse --archs $ARCHS build/${QUIP_ARCH}
fi
done
env:
CIBW_TEST_SKIP: "*-macosx_arm64"
CIBW_BEFORE_ALL_MACOS: "brew install gfortran && brew unlink gfortran && brew link gfortran"
# CIBW_BEFORE_ALL_LINUX: "which yum && yum install -y gcc-gfortran || apk add gfortran"
CIBW_BEFORE_BUILD: "bash .github/workflows/prepare-wheel-build.sh"

# Uncomment to get SSH access for testing
- name: Setup tmate session
if: failure()
Expand All @@ -126,7 +120,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

- name: Build source tarball
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand Down
Loading