Skip to content

Commit d768b8a

Browse files
committed
Add build-wheel job (Linux x86_64)
1 parent 410bf47 commit d768b8a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,34 @@ jobs:
4646
4747
- name: Check inline samples are up to date
4848
run: python test/tools/inline_samples.py --check
49+
50+
build-wheel:
51+
name: Build wheel (Linux x86_64, Python ${{ matrix.python-version }})
52+
runs-on: ubuntu-latest
53+
strategy:
54+
fail-fast: false
55+
matrix:
56+
python-version: ["3.10"]
57+
steps:
58+
- name: Checkout repository
59+
uses: actions/checkout@v4
60+
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v5
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
66+
- name: Install build dependencies
67+
run: |
68+
python -m pip install --upgrade pip
69+
pip install build wheel setuptools
70+
71+
- name: Build wheel
72+
run: python -m build --wheel --outdir dist/
73+
74+
- name: Upload wheel artifact
75+
uses: actions/upload-artifact@v4
76+
with:
77+
name: wheel-linux-x86_64-py${{ matrix.python-version }}
78+
path: dist/*.whl
79+
retention-days: 7

0 commit comments

Comments
 (0)