Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow #1

Merged
merged 13 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 31 additions & 6 deletions .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: Build
name: Wheel::Linux::x86_64

on: [push, pull_request]
on:
pull_request:
push:
branches:
- master
release:
types: [published]

concurrency:
group: wheel_linux_x86_64-${{ github.ref }}
cancel-in-progress: true

jobs:
build_wheels:
Expand All @@ -10,23 +20,38 @@ jobs:
matrix:
os: [ubuntu-latest]
arch: [x86_64]
container_img: ["quay.io/pypa/manylinux2014_x86_64"]

container: ${{ matrix.container_img }}

steps:
- uses: actions/checkout@v4
- name: Install dependency
run: yum update -y && yum install -y docker

- uses: actions/checkout@v3

- name: Install cibuildwheel
run: python3.9 -m pip install cibuildwheel~=2.11.0

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}

CIBW_SKIP: "*-musllinux*"

CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*"

CIBW_BEFORE_BUILD: |
cat /etc/yum.conf | sed "s/\[main\]/\[main\]\ntimeout=5/g" > /etc/yum.conf
python -m pip install cmake~=3.24.0
yum clean all -y
yum install devtoolset-11-gcc-c++ -y
yum install boost boost-thread boost-devel
yum install mpfr
yum install mpfr mpfr-devel -y

CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

run: python3.9 -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ FetchContent_Declare(
GIT_TAG boost-1.79.0
)
FetchContent_MakeAvailable(boost_math)
target_link_libraries(polyval2d_high_precision_external_libs INTERFACE boost_math boost_multiprecision)

FetchContent_Declare(
boost_config
GIT_REPOSITORY https://github.com/boostorg/config.git
GIT_TAG boost-1.79.0
)
FetchContent_MakeAvailable(boost_config)
target_link_libraries(polyval2d_high_precision_external_libs INTERFACE boost_config boost_math boost_multiprecision)


if(ENABLE_PYTHON)
Expand Down