From ff9cdbd29c9faa71b43eb65a7347e22076c8926f Mon Sep 17 00:00:00 2001 From: puerling Date: Thu, 12 Dec 2024 10:58:03 +0100 Subject: [PATCH] add workflow to build for `manylinux` --- .github/workflows/build_wheel.yml | 42 +++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_wheel.yml diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml new file mode 100644 index 000000000..b875599c1 --- /dev/null +++ b/.github/workflows/build_wheel.yml @@ -0,0 +1,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/cibuildwheel@v2.22.0 + 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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b32701180..95e3b6529 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ --- name: CI -on: [push, pull_request] +on: [] jobs: