diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2020-11-27 13:06:04 +0100 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2020-11-27 12:13:51 +0000 |
commit | a293892d73c2f9e695c7eba513bf47c8a525c3d3 (patch) | |
tree | c52bddb908052aafa3251d442f95a9385874de1f | |
parent | df505384af723d7cf004afd84a10c7e9da181c9b (diff) |
uadk: initial build job
https://projects.linaro.org/browse/LSS-1905
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Change-Id: I03b4eade03824b358d4aee1d9222b0188526e69a
-rw-r--r-- | uadk.yaml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/uadk.yaml b/uadk.yaml new file mode 100644 index 0000000000..9db1fdbfc1 --- /dev/null +++ b/uadk.yaml @@ -0,0 +1,68 @@ +- job: + name: uadk + project-type: freestyle + defaults: global + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + - build-discarder: + days-to-keep: 30 + num-to-keep: 30 + artifact-num-to-keep: 10 + disabled: false + node: docker-buster-arm64 + display-name: 'UADK - User Space Accelerator Development Kit' + scm: + - git: + url: https://github.com/Linaro/uadk.git + refspec: +refs/heads/master:refs/remotes/origin/master + name: origin + branches: + - refs/heads/master + basedir: uadk + skip-tag: true + shallow-clone: true + wipe-workspace: false + wrappers: + - timestamps + - build-name: + name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' + builders: + - shell: | + #!/bin/bash + + sudo apt update -q=2 + sudo apt install -q=2 --yes --no-install-recommends zlib1g-dev libnuma-dev + + set -e + + cd ${WORKSPACE}/uadk && ./autogen.sh + + # shared build for v1 + ./conf.sh --with-uadk_v1 && make + make install DESTDIR=${WORKSPACE}/uadk-shared-v1 && make clean + + # shared build for v2 + ./conf.sh && make + make install DESTDIR=${WORKSPACE}/uadk-shared-v2 && make clean + + # FIXME: https://github.com/Linaro/uadk/issues/90 + set +e + # static build for v1 + ./conf.sh --with-uadk_v1 --static && make + make install DESTDIR=${WORKSPACE}/uadk-static-v2 && make clean + set -e + + # static build for v2 + ./conf.sh --static && make + make install DESTDIR=${WORKSPACE}/uadk-static-v2 && make clean + + cd ${WORKSPACE} + tar -cJf uadk.tar.xz uadk-*-v*/ + publishers: + - archive: + artifacts: 'uadk.tar.xz' + - email: + recipients: 'haojian.zhuang@linaro.org' |