Skip to content

Commit

Permalink
Update buildwheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
etphipp authored Aug 19, 2024
1 parent e4438f6 commit 285a9ba
Showing 1 changed file with 41 additions and 30 deletions.
71 changes: 41 additions & 30 deletions .github/workflows/buildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,56 @@ on:
workflow_dispatch

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
build-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Build sdist
run: python -m build --sdist

# build-wheels:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# steps:
# - uses: actions/checkout@v2

- name: Setup pip
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel
# - uses: actions/setup-python@v2
# with:
# python-version: 3.11

- name: Build wheel
run: python -m cibuildwheel --output-dir dist/
env:
CIBW_BUILD: cp311-manylinux_x86_64
CIBW_SKIP: "*-win32 *-manylinux_i686"
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL: "yum install -y openblas-devel"
CIBW_CONFIG_SETTINGS: "cmake.define.ENABLE_PYTHON_EMBED=OFF"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: >
cd {package} &&
pytest python/test
# - name: Setup pip
# run: |
# python -m pip install --upgrade pip
# python -m pip install cibuildwheel

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
# - name: Build wheel
# run: python -m cibuildwheel --output-dir dist/
# env:
# CIBW_BUILD: cp311-manylinux_x86_64
# CIBW_SKIP: "*-win32 *-manylinux_i686"
# CIBW_BUILD_VERBOSITY: 1
# CIBW_BEFORE_ALL: "yum install -y openblas-devel"
# CIBW_CONFIG_SETTINGS: "cmake.define.ENABLE_PYTHON_EMBED=OFF"
# CIBW_TEST_REQUIRES: pytest
# CIBW_TEST_COMMAND: >
# cd {package} &&
# pytest python/test

# - name: Upload distributions
# uses: actions/upload-artifact@v4
# with:
# name: release-dists
# path: dist/

pypi-publish:
runs-on: ubuntu-latest

needs:
- build
- build-sdist
#- build-wheels

permissions:
id-token: write
Expand All @@ -63,4 +72,6 @@ jobs:

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true

0 comments on commit 285a9ba

Please sign in to comment.