Skip to content

Commit

Permalink
Retry manylinux wheel building
Browse files Browse the repository at this point in the history
  • Loading branch information
twomagpi committed Aug 3, 2024
1 parent b729579 commit bb39b98
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,34 +67,34 @@ jobs:
- name: Run tests
run: python -m unittest discover --start-directory tests

# build_wheels:
# name: Build wheels on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [windows-latest] #ubuntu-latest#, macos-13, macos-14]
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
#
# # Used to host cibuildwheel
# - uses: actions/setup-python@v5
#
# - name: Install cibuildwheel
# run: python -m pip install cibuildwheel==2.19.2
#
# - name: Build wheels
# run: python -m cibuildwheel --output-dir wheelhouse
# # to supply options, put them in 'env', like:
# # env:
# # CIBW_SOME_OPTION: value
#
# - uses: actions/upload-artifact@v4
# with:
# name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
# path: ./wheelhouse/*.whl
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] #windows-latest], macos-13, macos-14]

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Used to host cibuildwheel
- uses: actions/setup-python@v5

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.19.2

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ Issues = "https://github.com/ukhsa-collaboration/pygom/issues"
# Normal options, etc.
manylinux-x86_64-image = "manylinux2014"

# Install blas & lapack on x86_64
[tool.cibuildwheel.linux]
before-all = "yum -y update && yum -y install blas-devel lapack-devel"
before-test = "yum -y update && yum -y install openblas-devel lapack"


[[tool.cibuildwheel.overrides]]
select = "cp3{8,9}-*"
manylinux-x86_64-image = "manylinux2010"

0 comments on commit bb39b98

Please sign in to comment.