forked from vaexio/vaex
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (75 loc) · 2.47 KB
/
wheel.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
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
name: Build binary wheel
on:
push:
tags:
- core-*
jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macOS-latest, windows-latest]
python-version: [36, 37, 38, 39, 310]
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Copy dll
if: (matrix.os == 'windows-latest')
uses: ./ci/actions/windll
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.7'
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.8.1
- name: Install twine/wheel
run: |
python -m pip install twine wheel
- name: chores
if: matrix.os != 'windows-latest'
run: |
mkdir dist
mkdir packages/vaex-core/bin
cp bin/install_pcre.sh packages/vaex-core/bin/
- name: Build vaex-core (windows)
if: (matrix.os == 'windows-latest')
env:
CIBW_BUILD: cp${{ matrix.python-version }}*64
CIBW_ENVIRONMENT_LINUX: "CFLAGS='-Wl,-strip-all' CXXFLAGS='-Wl,-strip-all'"
run: |
python -m cibuildwheel --output-dir dist packages/vaex-core
- name: Build vaex-core (linux, osx)
if: (matrix.os != 'windows-latest')
env:
CIBW_BEFORE_BUILD: bin/install_pcre.sh
CIBW_BUILD: "cp${{ matrix.python-version }}*64 cp${{ matrix.python-version }}-macosx-*"
CIBW_ENVIRONMENT_LINUX: "CFLAGS='-Wl,-strip-all' CXXFLAGS='-Wl,-strip-all'"
CIBW_BUILD_VERBOSITY: 2
# needed for m1 builds
CIBW_ENVIRONMENT_MACOS: "CFLAGS='-I/usr/local/include -L/usr/local/lib' CXXFLAGS='-I/usr/local/include -L/usr/local/lib' LDFLAGS='-L/usr/local/lib'"
CIBW_ARCHS_MACOS: "x86_64 arm64"
run: |
python -m cibuildwheel --output-dir dist packages/vaex-core
- name: Make source distribution
shell: bash
run: |
cd packages/vaex-core && python setup.py sdist
- name: Copy build artifacts
shell: bash
run: |
cp packages/vaex-core/dist/* dist/
- uses: actions/upload-artifact@v1
with:
name: distributions
path: ./dist
- name: Publish a Python distribution to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password_vaex_core }}
run: |
openssl sha256 dist/*
twine upload --skip-existing dist/vaex?core*