Skip to content
Snippets Groups Projects
Commit dc0732c7 authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

Merge branch 'wip/smcv/scan-build' into 'master'

Add a build that uses clang, scan-build and UBSan

See merge request steam/steam-runtime-tools!41
parents a5f6ac88 0ac46210
No related branches found
No related tags found
1 merge request!41Add a build that uses clang, scan-build and UBSan
Pipeline #1552 passed
......@@ -6,7 +6,7 @@ include:
file: '/steam-gitlab-ci-pipeline.yml'
variables:
BUILD_IMAGE: docker.internal.steamos.cloud/steamrt/sdk:scout-latest
BUILD_IMAGE: docker.internal.steamos.cloud/steamos/package-builder:buster
STEAM_CI_USE_BINARIES_FROM: autopkgtest
STEAM_CI_DEPENDENCIES: >-
debhelper
......@@ -20,6 +20,35 @@ variables:
libxcomposite-dev
meson
build:
stages:
- build
- test
autopkgtest:
stage: test
variables:
BUILD_IMAGE: docker.internal.steamos.cloud/steamos/package-builder:buster
BUILD_IMAGE: docker.internal.steamos.cloud/steamrt/sdk:scout-latest
ubsan:
stage: test
image: "${BUILD_IMAGE}"
script:
- |
set -eux
export DEBIAN_FRONTEND=noninteractive
apt-get install -y --no-install-recommends \
ccache \
clang \
clang-tools \
${NULL+}
export CC=clang
rm -fr builddir
meson \
-Db_lundef=false \
-Db_sanitize=address,undefined \
builddir
ninja -C builddir scan-build
meson test -C builddir -v
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment