From 26e8828ab3f5d5e1f58616a231e95e046a67441c Mon Sep 17 00:00:00 2001 From: Matthias Goerner <1239022+unhyperbolic@users.noreply.github.com> Date: Wed, 6 Mar 2024 23:04:43 -0800 Subject: [PATCH] CI workflow: trying out all.yml that build on Linux/MacOS/Windows. --- .github/workflows/all.yml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/all.yml diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml new file mode 100644 index 00000000..4f3de2a4 --- /dev/null +++ b/.github/workflows/all.yml @@ -0,0 +1,40 @@ +name: Linux/MacOs/Windows Wheels + +on: [push, pull_request] + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, macos-11, windows-2019] + + steps: + - uses: actions/checkout@v3 + + - name: Build wheels + uses: pypa/cibuildwheel@v2.16.5 + env: + # Skip Python 32 bit Linux, and PyPy + CIBW_SKIP: "*-manylinux_i686 *musllinux* pp*" + CIBW_BEFORE_ALL_LINUX: yum install -y tk mesa-libGLU-devel + CIBW_BEFORE_BUILD: > + pip install cython FXrays low_index sphinx sphinx_rtd_theme && + pip install --pre --extra-index-url https://test.pypi.org/simple cypari && + pip install git+https://github.com/3-manifolds/PLink && + pip install git+https://github.com/3-manifolds/snappy_manifolds && + pip install git+https://github.com/3-manifolds/Spherogram + CIBW_BEFORE_TEST: > + pip install cython low_index && + pip install --pre --extra-index-url https://test.pypi.org/simple cypari && + pip install git+https://github.com/3-manifolds/PLink && + pip install git+https://github.com/3-manifolds/snappy_manifolds && + pip install git+https://github.com/3-manifolds/Spherogram + CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair --strip -w {dest_dir} {wheel} + CIBW_TEST_COMMAND: python -m snappy.test --skip-modern-opengl + + - uses: actions/upload-artifact@v3 + with: + name: snappy_all_wheels + path: ./wheelhouse/*.whl