]> git.proxmox.com Git - mirror_lxc.git/commitdiff
ci: also build with ASan/UBsan
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 30 Mar 2021 03:18:11 +0000 (03:18 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 30 Mar 2021 04:22:46 +0000 (04:22 +0000)
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
.github/workflows/build.yml

index 3deb22167511ba0d2440fe972160a08abd1285f7..a1c1a72afc5b66bb09d6230b0f6f3f39f78cf9cf 100644 (file)
@@ -45,10 +45,16 @@ jobs:
           ./autogen.sh
 
           BUILD="$(pwd)/build"
-          mkdir -p "${BUILD}"
+          SAN_BUILD="$(pwd)/san_build"
+          mkdir -p "${BUILD}" "${SAN_BUILD}"
           cd "${BUILD}"
           ../configure --enable-tests --with-distro=unknown
 
           # Build
           make -j4
           make DESTDIR="${BUILD}/install" install
+
+          cd "${SAN_BUILD}"
+          CFLAGS="$CFLAGS -fsanitize=address,undefined" ../configure --disable-no-undefined --enable-tests --with-distro=unknown
+          make -j4
+          make DESTDIR="${SAN_BUILD}/install" install