-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.yml
52 lines (41 loc) · 1.13 KB
/
example.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
47
48
49
50
51
name: pkg ver
defaults:
run:
shell: bash
on: pull_request
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
steps:
- uses: actions/checkout@v2
# Used to host cibuildwheel
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.1.2
- name: Fetch source distribution
run: |
curl URL -o pkg-ver.tar.gz
tar -zxf pkg-ver.tar.gz
mv pkg-ver/* .
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
CIBW_BUILD: "cp*"
- name: Checksum
uses: Huy-Ngo/[email protected]
with:
glob: 'wheelhouse/*.whl'
- uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.whl
- name: Release
uses: softprops/action-gh-release@v1
with:
name: 'Release: pkg ver'
files: wheelhouse/*.whl
tag_name: pkg-ver