Skip to content

Commit

Permalink
add workflow to build for manylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
Puerling committed Dec 12, 2024
1 parent 604cfbb commit abae12c
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
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_BUILD: >
cp311-*
cp312-*
CIBW_SKIP: >
pp*
*musllinux*
*-win32
*_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: ./wheelhouse/*.whl

0 comments on commit abae12c

Please sign in to comment.