-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (43 loc) · 1.36 KB
/
build_wheels_linux.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Wheel::Linux::x86_64
on:
pull_request:
push:
branches:
- master
release:
types: [published]
concurrency:
group: wheel_linux_x86_64-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
arch: [x86_64]
container_img: ["quay.io/pypa/manylinux2014_x86_64"]
container: ${{ matrix.container_img }}
steps:
- 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
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 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