diff options
author | Theodore Grey <theodore.grey@linaro.org> | 2021-02-16 04:01:34 +0000 |
---|---|---|
committer | Theodore Grey <theodore.grey@linaro.org> | 2021-02-19 16:44:31 +0000 |
commit | 471f7b1d8cc82bbe43fe490d0d6087fe137c8a0c (patch) | |
tree | 1259177c4eef17bc93eca8536848f8e0f5750166 /tvm-ci-build.yaml | |
parent | b981488a54419ec3623b7f99d235de24273e3bb0 (diff) |
tvm-ci-build: creating tvm-ci-build.yaml
Initial commit for tvm-ci-build.yaml. This builds tvm for each PR in the
tvm git repo. Introducing TVM into the Linaro CI for benchmarking and
validation testing.
Signed-off-by: Theodore Grey <theodore.grey@linaro.org>
Change-Id: I06a5904ae8aa1d3ccfd4bc946ec50b882a587051
Diffstat (limited to 'tvm-ci-build.yaml')
-rw-r--r-- | tvm-ci-build.yaml | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/tvm-ci-build.yaml b/tvm-ci-build.yaml new file mode 100644 index 0000000000..1d8c631a57 --- /dev/null +++ b/tvm-ci-build.yaml @@ -0,0 +1,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-bionic-arm64-armnn + 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}' > our/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}
\ No newline at end of file |