Skip to content

Commit 8a27904

Browse files
committed
build wheels on github actions
1 parent a4be370 commit 8a27904

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/wheel.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Wheels
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build_wheels:
7+
name: Build wheel on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-18.04, windows-latest, macos-latest]
13+
env:
14+
CIBW_TEST_COMAND: pytest --pyargs numcodecs
15+
CIBW_SKIP: "*27* pp*"
16+
CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=10.9"
17+
18+
steps:
19+
- uses: actions/checkout@v1
20+
with:
21+
submodules: true
22+
23+
- uses: actions/setup-python@v1
24+
name: Install Python
25+
with:
26+
python-version: '3.7'
27+
28+
- name: Install cibuildwheel
29+
run: |
30+
python -m pip install cibuildwheel==1.3.0
31+
32+
- name: Build wheel
33+
run: |
34+
python -m cibuildwheel --output-dir wheelhouse
35+
- uses: actions/upload-artifact@v1
36+
with:
37+
name: wheels
38+
path: ./wheelhouse

0 commit comments

Comments
 (0)