-
Notifications
You must be signed in to change notification settings - Fork 53
42 lines (37 loc) · 1.06 KB
/
build_wheel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_SKIP: >
pp*
*-win32
*-manylinux_i686
CIBW_BEFORE_BUILD: >
cmake -B build -S .
-DCMAKE_BUILD_TYPE=Release
-DSPIRIT_BUILD_FOR_PYTHON=ON
-DSPIRIT_BUILD_TEST=OFF
-DSPIRIT_UI_CXX_USE_QT=OFF
-DSPIRIT_UI_IMGUI=OFF
&& cmake --build build -j2
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
with:
package-dir: ./core/python
output-dir: wheelhouse
config-file: "{package}/pyproject.toml"
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./core/python/wheelhouse/*.whl