Skip to content

Commit ec039cc

Browse files
authored
IGNITE-18103 Move artifacts build to github actions (#59)
1 parent 94e619a commit ec039cc

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/build_wheel.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Build wheels
17+
18+
on:
19+
push:
20+
branches:
21+
- master
22+
- 'pyignite-*'
23+
tags:
24+
- '*.rc[0-9]+'
25+
26+
jobs:
27+
build_wheels:
28+
name: Build wheels on ${{ matrix.os }}
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
matrix:
32+
os: [ ubuntu-20.04, windows-2019, macos-12 ]
33+
34+
steps:
35+
- uses: actions/checkout@v3
36+
37+
- uses: actions/setup-python@v3
38+
39+
- name: Install cibuildwheel
40+
run: python -m pip install cibuildwheel==2.11.2
41+
42+
- name: Build wheels
43+
run: python -m cibuildwheel --output-dir wheelhouse
44+
env:
45+
CIBW_SKIP: "pp* cp36* *-win32 *-manylinux_i686"
46+
47+
- name: Build source distribution
48+
if: ${{ matrix.os == 'ubuntu-20.04' }}
49+
run:
50+
python setup.py sdist --formats=zip --dist-dir ./wheelhouse
51+
52+
- uses: actions/upload-artifact@v3
53+
with:
54+
path: |
55+
./wheelhouse/*.whl
56+
./wheelhouse/*.zip

0 commit comments

Comments
 (0)