Skip to content

Commit 4654fc5

Browse files
committed
add wheel build
inspired by `bindings/python/Makefile`
1 parent b89f20c commit 4654fc5

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/windows.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,29 @@ jobs:
5858
- name: Test
5959
run: |
6060
meson test -C meson-build-${{ matrix.linking }}
61+
62+
python:
63+
name: "python bindings"
64+
strategy:
65+
matrix:
66+
python:
67+
- 3.12
68+
- 3.10
69+
runs-on: windows-2022
70+
steps:
71+
- uses: actions/checkout@v4
72+
- uses: microsoft/setup-msbuild@v2
73+
with:
74+
vs-version: 17
75+
- uses: actions/setup-python@v5
76+
with:
77+
python-version: "${{ matrix.python }} "
78+
- name: install dependencies
79+
run: python -m pip install cython build cibuildwheel
80+
- name: Build
81+
run: |
82+
cd bindings/python
83+
robocopy ..\..\edlib . /E
84+
cython --cplus edlib.pyx -o edlib.bycython.cpp
85+
python -m build --sdist
86+
python -m cibuildwheel --output-dir wheelhouse

0 commit comments

Comments
 (0)