blob: e8aa418f17221ae2bdf8e3fb83aa5f2f918b493f (
plain)
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
66
67
68
69
70
71
72
73
|
- job:
name: tvm-ci-build
display-name: 'TVM - CI Build'
concurrent: true
project-type: freestyle
defaults: global
description: |
Updates source and build tvm frequently to ensure builds are succesful.
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-read
- job-extended-read
- job-build
- job-cancel
- build-discarder:
days-to-keep: 90
num-to-keep: 90
- github:
url: https://github.com/apache/tvm.git
triggers:
- github-pull-request:
trigger-phrase: 'TRIGGER BUILD'
white-list-target-branches:
- 'main'
success-comment: 'build successful'
failure-comment: 'build failed'
parameters:
- string:
name: LAVA_SERVER
default: 'https://validation.linaro.org/RPC2/'
- string:
name: GIT_COM_ID
disabled: false
node: docker-buster-arm64
wrappers:
- timestamps
- credentials-binding:
- text:
credential-id: QA_REPORTS_TOKEN
variable: QA_REPORTS_TOKEN
builders:
- shell: |
git clone https://github.com/K1504296/armnn-ci.git
cd armnn-ci && bash -ex tvm-builders.sh
- shell: |
#!/bin/bash -e
echo "DEVICE_TYPE=${DEVICE_TYPE}" > device_type_parameters
- inject:
properties-file: device_type_parameters
- linaro-publish-token
- shell: |
#!/bin/bash
set -ex
sudo apt-get install -y jq
LAVA_ID=$GIT_COM_ID
TVM_TAR_LOCATION=https://snapshots.linaro.org/components/tvm/${BUILD_NUMBER}/tvm.tar.xz
jq -n --arg 'LAVA_ID' $LAVA_ID \
--arg 'TVM_TAR_LOCATION' $TVM_TAR_LOCATION \
--arg 'BUILD_NUMBER' $BUILD_NUMBER \
'{LAVA_ID:$LAVA_ID, TVM_TAR_LOCATION:$TVM_TAR_LOCATION, BUILD_NUMBER:$BUILD_NUMBER}' > out/buildInfo
#PUBLISH
test -d ${HOME}/bin || mkdir ${HOME}/bin
wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
time python3 ${HOME}/bin/linaro-cp.py \
--link-latest \
out/ components/tvm/${BUILD_NUMBER}
|