-
Notifications
You must be signed in to change notification settings - Fork 541
60 lines (57 loc) · 1.72 KB
/
build-wheels.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
name: Build Python wheels
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-wheels:
runs-on: ubuntu-latest
strategy:
matrix:
WHEEL_TYPE:
- i686
- x86_64
- x86_64_tensorflow
include:
- WHEEL_TYPE: i686
DOCKER_IMAGE: mtgupf/essentia-builds:manylinux2014_i686
PRE_CMD: linux32
- WHEEL_TYPE: x86_64
DOCKER_IMAGE: mtgupf/essentia-builds:manylinux2014_x86_64
- WHEEL_TYPE: x86_64_tensorflow
DOCKER_IMAGE: mtgupf/essentia-builds:manylinux2014_x86_64
WITH_TENSORFLOW: 1
env:
DOCKER_IMAGE: ${{ matrix.DOCKER_IMAGE }}
WITH_TENSORFLOW: ${{ matrix.WITH_TENSORFLOW }}
PRE_CMD: ${{ matrix.PRE_CMD }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch release tags from GitHub
# Workaround for https://github.com/actions/checkout/issues/290
run: git fetch --tags --force
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build wheels in a Docker image
run: |
docker pull $DOCKER_IMAGE > /dev/null
docker run --rm -v `pwd`:/io --env WITH_TENSORFLOW=$WITH_TENSORFLOW $DOCKER_IMAGE $PRE_CMD /io/travis/build_wheels.sh
- name: Build sdist
run: |
ls wheelhouse/
sudo python setup.py sdist
- name: Upload wheels and sdist
uses: actions/upload-artifact@v4
with:
name: essentia-python-wheels
path: |
wheelhouse/essentia*.whl
wheelhouse/essentia*.tar.gz
if-no-files-found: error