-
Notifications
You must be signed in to change notification settings - Fork 100
40 lines (35 loc) · 1.02 KB
/
build_wheels.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
name: build_wheels
run-name: ${{ github.actor }} is building wheels
on: [push]
jobs:
build_wheels:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: |
git submodule update --init --recursive
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Setup pip
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel==1.6.4
- name: Install
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update
sudo apt-get install gcc g++
fi
shell: bash
- name: Build wheel
run: python -m cibuildwheel --output-dir dist/
env:
CIBW_BUILD: cp36-* cp37-* cp38-*
- uses: actions/upload-artifact@v2
with:
path: ./dist/*.whl