-
Notifications
You must be signed in to change notification settings - Fork 92
46 lines (38 loc) · 1.12 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
41
42
43
44
45
46
name: Build Wheels
# Trigger the workflow on push to master. (this is equal to: PR is merged)
on:
push:
branches:
- master
pull_request_review:
types: [ submitted ]
# Building wheels on Ubuntu and Windows systems
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019]
steps:
- uses: actions/checkout@v4
# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel==2.16.2
- name: Install libomp
if: runner.os == 'macOS'
run: brew install libomp
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_SKIP: "cp27-* cp33-* cp34-* cp35-* cp36-* cp37-* pp*"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
CIBW_ARCHS: "auto64"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl