Skip to content

Commit

Permalink
Merge pull request #650 from ATM-Jahid/fix-whl
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskermode authored Jul 3, 2024
2 parents 8e99b0a + 620b9a4 commit ee3f4a8
Showing 1 changed file with 11 additions and 17 deletions.
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

0 comments on commit ee3f4a8

Please sign in to comment.