-
Notifications
You must be signed in to change notification settings - Fork 70
51 lines (43 loc) · 1.49 KB
/
build_wheels_39.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: BUILD_WHEELS_39
on:
push:
tags:
- '**'
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, macos-10.15]
steps:
- uses: actions/checkout@v2
# Used to host cibuildwheel
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install twine cibuildwheel==1.11.0
- name: Build wheels for Linux
if: matrix.os == 'ubuntu-latest'
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_BUILD: bash tools/ci/pre_build.sh
CIBW_BUILD: cp39-manylinux_x86_64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_BUILD_VERBOSITY": 1
- name: Build wheels for macOS
if: matrix.os == 'macOS-latest' || matrix.os == 'macOS-10.15'
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_BUILD: bash tools/ci/pre_build.sh
CIBW_BUILD: cp39-macosx_x86_64
CIBW_ARCHS_MACOS: x86_64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_BUILD_VERBOSITY": 1
CIBW_ENVIRONMENT: BAZELISK_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
- name: Deploy wheels
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m twine upload --skip-existing wheelhouse/*