From 285a9bacd88f3116a0ca3f3ce1f753776dbc3623 Mon Sep 17 00:00:00 2001 From: Eric Phipps Date: Mon, 19 Aug 2024 11:53:21 -0600 Subject: [PATCH] Update buildwheels.yml --- .github/workflows/buildwheels.yml | 71 ++++++++++++++++++------------- 1 file changed, 41 insertions(+), 30 deletions(-) diff --git a/.github/workflows/buildwheels.yml b/.github/workflows/buildwheels.yml index 2805568f4a..c6783cfba1 100644 --- a/.github/workflows/buildwheels.yml +++ b/.github/workflows/buildwheels.yml @@ -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 @@ -63,4 +72,6 @@ jobs: - name: Publish release distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + skip-existing: true