Skip to content

Commit

Permalink
Update build_wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbolliet authored Sep 29, 2024
1 parent d4eccd3 commit 57d772a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
if: runner.os != 'Windows'
run: |
rm -rf build dist *.egg-info class-sz/python/classy_sz.*so class-sz/python/classy_sz.*egg-info
shell: bash
- name: Set CIBW_BUILD for the correct CPython version
Expand All @@ -87,7 +87,7 @@ jobs:
elif [ "${{ matrix.python-version }}" == "3.10" ]; then
echo "CIBW_BUILD=cp310-*" >> $GITHUB_ENV
fi
shell: bash
shell: bash


# - name: Install system dependencies (Linux)
Expand All @@ -103,6 +103,7 @@ jobs:

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.14.1
shell: bash

# Build wheels for Linux (with custom build options)
- name: Build wheels for Linux
Expand Down Expand Up @@ -258,9 +259,11 @@ jobs:
- name: Install dependencies for source distribution
run: |
python -m pip install build Cython numpy classy_szfast
shell: bash

- name: Build source distribution (sdist)
run: python -m build --sdist --outdir dist
shell: bash

- name: Upload built distributions (wheels and sdist)
uses: actions/upload-artifact@v4
Expand All @@ -269,14 +272,17 @@ jobs:
path: |
wheelhouse/*.whl
dist/*.tar.gz
shell: bash

- name: Install the built wheel
run: |
python -m pip install wheelhouse/*.whl
shell: bash

- name: Check import of classy_sz
run: |
python -c "import classy_sz; print('classy_sz imported successfully')"
shell: bash


publish_wheels:
Expand Down

0 comments on commit 57d772a

Please sign in to comment.