diff options
author | Eric Engestrom <[email protected]> | 2019-01-20 11:26:53 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-06 17:56:30 +0000 |
commit | 46d23c0a46aef2a2859edda38ea27893aae15a59 (patch) | |
tree | cd09cae1f0f8aaf2f0aafc7f3919d84e64329ea7 /.gitlab-ci.yml | |
parent | 329f5cd78092f3ee72d3565417de646c98990036 (diff) |
gitlab-ci: add a meson vulkan build
Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 90b4f01cf00..2bec220666d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ variables: stages: - containers-build + - build+test # CONTAINERS @@ -47,3 +48,63 @@ containers:ubuntu: changes: - .gitlab-ci.yml - .gitlab-ci/Dockerfile.ubuntu + + +# BUILD + +.build: + image: $UBUNTU_IMAGE + stage: build+test + artifacts: + when: on_failure + untracked: true + +.meson-build: + extends: .build + before_script: + # We need to control the version of llvm-config we're using, so we'll + # generate a native file to do so. This requires meson >=0.49 + - if test -n "$LLVM_VERSION"; then + LLVM_CONFIG="llvm-config-${LLVM_VERSION}"; + echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file; + $LLVM_CONFIG --version; + else + touch native.file; + fi + - meson --version + - meson _build + --native-file=native.file + -D build-tests=true + -D libunwind=${UNWIND} + ${DRI_LOADERS} + -D dri-drivers=${DRI_DRIVERS:-[]} + ${GALLIUM_ST} + -D gallium-drivers=${GALLIUM_DRIVERS:-[]} + -D vulkan-drivers=${VULKAN_DRIVERS:-[]} + - cd _build + - meson configure + script: + - ninja + - ninja test + +build:meson-vulkan: + extends: .meson-build + variables: + UNWIND: "false" + DRI_LOADERS: > + -D glx=disabled + -D gbm=false + -D egl=false + -D platforms=x11,wayland,drm + -D osmesa=none + GALLIUM_ST: > + -D dri3=true + -D gallium-vdpau=false + -D gallium-xvmc=false + -D gallium-omx=disabled + -D gallium-va=false + -D gallium-xa=false + -D gallium-nine=false + -D gallium-opencl=disabled + VULKAN_DRIVERS: intel,amd + LLVM_VERSION: "7" |