forked from kenmcmil/ivy
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (54 loc) · 1.6 KB
/
build-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
name: Continuous Integration
on:
workflow_dispatch:
jobs:
build:
name: Build - ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: ['ubuntu-18.04']
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: 2.7
architecture: x64
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.os }}
max-size: 100M
- name: use-ccache
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
- run: sudo apt-get -y install python python-pip g++ cmake python-ply python-pygraphviz git python-tk tix pkg-config libssl-dev
- run: pip install wheel
- run: python build_submodules.py
- run: python setup.py bdist_wheel --plat-name manylinux1_x86_64
- run: ls -l dist
- uses: actions/upload-artifact@v2
with:
name: ivy-wheels
path: dist/
publish:
name: Publish
needs: build
runs-on: ubuntu-18.04
steps:
- uses: actions/download-artifact@v2
with:
name: ivy-wheels
path: dist/
- run: ls -l dist
- name: Publish package
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
verbose: true