-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (54 loc) · 1.47 KB
/
build-pip.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
name: build-pip
on:
push:
branches:
- master
paths:
- '.github/workflows/build-pip.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'kaldifst/csrc/**'
- 'kaldifst/python/**'
- 'setup.py'
pull_request:
branches:
- master
paths:
- '.github/workflows/build-pip.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'kaldifst/csrc/**'
- 'kaldifst/python/**'
- 'setup.py'
workflow_dispatch:
concurrency:
group: build-pip-${{ github.ref }}
cancel-in-progress: true
jobs:
build-pip:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v2
# see https://github.com/microsoft/setup-msbuild
- name: Add msbuild to PATH
if: startsWith(matrix.os, 'windows')
uses: microsoft/setup-msbuild@v1.0.2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build
shell: bash
run: |
python3 -m pip install -U pip wheel numpy
python3 setup.py bdist_wheel
ls -lh dist
python3 -m pip install ./dist/kaldifst*.whl
cd ../..
python3 -c "import kaldifst; print(kaldifst.__version__)"
python3 -c "import kaldifst; print(kaldifst.__file__)"