Skip to content

Commit aa46cfe

Browse files
authored
Merge pull request #224 from Czaki/build_wheel
Build wheels on github actions
2 parents 42702d8 + 26aa525 commit aa46cfe

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/wheel.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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_COMMAND: pytest --pyargs numcodecs
15+
CIBW_TEST_REQUIRES: pytest
16+
CIBW_SKIP: "*27* pp*"
17+
CIBW_ENVIRONMENT_MACOS: "MACOSX_DEPLOYMENT_TARGET=10.9"
18+
19+
steps:
20+
- uses: actions/checkout@v1
21+
with:
22+
submodules: true
23+
24+
- uses: actions/setup-python@v1
25+
name: Install Python
26+
with:
27+
python-version: '3.7'
28+
29+
- name: Install cibuildwheel
30+
run: |
31+
python -m pip install cibuildwheel==1.3.0
32+
33+
- name: Build wheel
34+
run: |
35+
python -m cibuildwheel --output-dir wheelhouse
36+
- uses: actions/upload-artifact@v1
37+
with:
38+
name: wheels
39+
path: ./wheelhouse

0 commit comments

Comments
 (0)