-
Notifications
You must be signed in to change notification settings - Fork 30
63 lines (59 loc) · 1.6 KB
/
wheel_manylinux_pypi.yaml
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
# GH actions.
name: Wheel-Manylinux-Pypi
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
schedule:
- cron: '0 5 * * 3' # Every Wed 5 AM UTC
jobs:
Build:
strategy:
matrix:
pkg: ['pypi-nightly']
# matrix of build configs
config:
- cuda: 'none'
image: 'tlcpack/package-cpu:2fddbe0'
package_name: 'apache-tvm'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: TVM checkout
run: |
git clone https://github.com/apache/tvm tvm --recursive
- name: Sync Package
run: |
python3 common/sync_package.py \
--cuda ${{ matrix.config.cuda }} \
--package-name ${{ matrix.config.package_name }} \
--use-public-version \
${{ matrix.pkg }}
- name: Build
env:
IMAGE: ${{ matrix.config.image }}
CUDA: ${{ matrix.config.cuda }}
run: |
docker/bash.sh --no-gpu $IMAGE ./wheel/build_wheel_manylinux.sh --cuda $CUDA
- name: Test
if: matrix.config.cuda == 'none'
env:
IMAGE: ${{ matrix.config.image }}
WHEEL_TEST: "True"
continue-on-error: true
run: |
docker/bash.sh --no-gpu $IMAGE ./wheel/run_tests.sh
- name: Wheel-Deploy-Pypi
if: github.ref == 'refs/heads/main'
env:
TWINE_NON_INTERACTIVE: 1
TWINE_REPOSITORY: pypi
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
run: |
python3 -m pip install twine
twine upload tvm/python/repaired_wheels/*