-
Notifications
You must be signed in to change notification settings - Fork 2
118 lines (114 loc) · 3.69 KB
/
build_wheels.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: build wheels
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
windows:
name: Build Windows
runs-on: windows-latest
strategy:
matrix:
python-version: [ '3.10' ] # TODO: Restore!
steps:
- name: Checkout
uses: actions/checkout@v3
- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: stable
default: true
- name: Setup Python ${{ matrix.python-version }} environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
args: -i python --release --out dist
- name: Install built wheel (x86_64)
run: |
pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
python -c "import pycoverm"
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
# macos:
# name: Build macOS
# runs-on: macos-latest
# strategy:
# matrix:
# python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: rust-toolchain
# uses: actions-rs/toolchain@v1.0.6
# with:
# profile: minimal
# toolchain: stable
# default: true
# - name: Setup Python ${{ matrix.python-version }} environment
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Build wheels (x86_64)
# uses: messense/maturin-action@v1
# with:
# target: x86_64
# maturin-version: v0.10.6
# args: --interpreter python${{ matrix.python-version }} --release --out dist
# - name: Install built wheel (x86_64)
# run: |
# pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
# python -c "import pycoverm"
# - name: Upload wheels
# uses: actions/upload-artifact@v2
# with:
# name: wheels
# path: dist
#
# linux:
# name: Build Linux
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
# - name: Build Wheels
# uses: messense/maturin-action@v1
# with:
# target: x86_64
# maturin-version: v0.10.6
# manylinux: auto
# args: --interpreter python${{ matrix.python-version }} --release --out dist
# before-script-linux: |
# # If we're running on rhel centos, install needed packages.
# if command -v yum &> /dev/null; then
# yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
# # If we're running on i686 we need to symlink libatomic
# # in order to build openssl with -latomic flag.
# if [[ ! -d "/usr/lib64" ]]; then
# ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
# fi
# else
# # If we're running on debian-based system.
# apt update -y && apt-get install -y libssl-dev openssl pkg-config
# fi
# - name: Install built wheel
# run: |
# pip install pycoverm --no-index --find-links dist --force-reinstall --no-dependencies
# python -c "import pycoverm"
# - name: Upload wheels
# uses: actions/upload-artifact@v2
# with:
# name: wheels
# path: dist