-
Notifications
You must be signed in to change notification settings - Fork 27
65 lines (60 loc) · 1.56 KB
/
publish.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: publish-fast-ctc-decode
on:
push:
tags:
- 'v*'
jobs:
linux-wheels:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux1_x86_64
steps:
- uses: actions/checkout@v1
- name: Build wheels
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup default nightly-2019-12-11
bash .github/workflows/build-wheels.sh
- uses: actions/upload-artifact@v1
with:
name: linux-wheels
path: wheelhouse/
osx-wheels:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
run: |
python3 -m pip install maturin
maturin build --release
- uses: actions/upload-artifact@v1
with:
name: osx-${{ matrix.python-version }}-wheel
path: target/wheels
windows-wheels:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
- uses: actions/setup-python@v2
- name: Build wheels
run: |
python -m pip install maturin
maturin build --release
- uses: actions/upload-artifact@v1
with:
name: windows-wheels
path: target/wheels