-
Notifications
You must be signed in to change notification settings - Fork 25
51 lines (44 loc) · 1.44 KB
/
python-binary-packages.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
name: python-binary-packages
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
# os: [ubuntu-20.04, windows-2019, macOS-11]
steps:
- uses: actions/checkout@v2
- name: Checkout CMS
uses: actions/checkout@v2
with:
repository: msoos/cryptominisat
ref: 'master'
path: python/cryptominisat
- name: Checkout Arjun
uses: actions/checkout@v2
with:
repository: meelgroup/arjun
path: python/arjun
# Used to host cibuildwheel
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.12.3
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_BEFORE_ALL_LINUX: yum install -y boost-devel zlib-devel
CIBW_SKIP: "*musl*"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Install twine
run: python -m pip install twine
- name: Publish wheels to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --skip-existing --disable-progress-bar ./wheelhouse/pyapproxmc-*manylinux*x86_64.whl