forked from NeuralEnsemble/elephant
-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (34 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
41
42
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@v3
# Used to host cibuildwheel
- uses: actions/setup-python@v4
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.3.1
- 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