forked from apache/datasketches-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (58 loc) · 1.78 KB
/
build_publish.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
58
59
60
61
62
63
64
name: Build Wheels
on: [ push, pull_request ]
jobs:
build_wheels:
name: Build Wheels On ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {
name: "MacOS Latest, Clang",
os: macos-latest,
test_target: test,
cc: "clang", cxx: "clang++"
}
- {
name: "Ubuntu Latest, GCC",
os: ubuntu-latest,
test_target: test,
cc: "gcc", cxx: "g++"
}
# - {
# name: "Windows Latest, MSVC",
# os: v,
# test_target: RUN_TESTS,
# cc: "cl", cxx: "cl",
# environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
# }
#- {
# name: "Windows Latest, MinGW+gcc",
# os: windows-latest,
# cc: "gcc", cxx: "g++"
# }
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install cibuildwheel
run: |
pip install wheel
pip install -e ".[compat,dev]" cibuildwheel twine
- name: Install Python dependencies
run: python -m pip install --upgrade pip setuptools wheel numpy tox
- name: Configure
run: |
python setup.py bdist_wheel
cibuildwheel --output-dir dist
ls dist
env:
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-*"
CIBW_BEFORE_BUILD: "rm -fr python/datasketches.* && rm -fr build/* && pip install cython"
- uses: actions/upload-artifact@v2
with:
path: ./dist/*.whl