Skip to content

Commit aed5822

Browse files
committed
Experimental cibuildwheel setup.
1 parent 17c48e2 commit aed5822

2 files changed

Lines changed: 31 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_wheels:
7+
name: Build wheels on ubuntu-latest
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Build wheels
12+
uses: pypa/cibuildwheel@v3.1.1
13+
- uses: actions/upload-artifact@v4
14+
with:
15+
name: cibw-wheels
16+
path: ./wheelhouse/*.whl
17+
build_sdist:
18+
name: Build SDist
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0 # Optional, use if you use setuptools_scm
24+
submodules: true # Optional, use if you have submodules
25+
- name: Build SDist
26+
run: pipx run build --sdist
27+
- uses: actions/upload-artifact@v4
28+
with:
29+
name: cibw-sdist
30+
path: dist/*.tar.gz

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
numpy-version: ["numpy"]
1514
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1615
steps:
1716
- name: Checkout code
@@ -21,7 +20,7 @@ jobs:
2120
with:
2221
python-version: ${{ matrix.python-version }}
2322
- name: Install Python dependencies
24-
run: python -m pip install --prefer-binary meson-python meson ninja setuptools setuptools-scm "cython>=3.1" "matplotlib>=3,<4" ${{ matrix.numpy-version }}
23+
run: python -m pip install --prefer-binary meson-python meson ninja setuptools setuptools-scm "cython>=3.1" "matplotlib>=3,<4" numpy
2524
- name: Build and install Raysect
2625
run: dev/install_editable.sh
2726
- name: Run tests

0 commit comments

Comments
 (0)