ci: add leak sanitizer ci check #7

Merged
light7734 merged 19 commits from ci/leak_sanitizer into main 2025-07-18 20:21:15 +00:00
Showing only changes of commit 77582a3bde - Show all commits

View file

@ -1,23 +1,19 @@
FROM alpine:latest
RUN apk add --no-cache \
FROM archlinux/base
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
bash \
base-devel \
clang \
llvm \
cmake \
git \
make \
g++ \
python3 \
py3-pip \
mesa-dev \
mesa-gl \
pkgconf \
python \
python-pip \
mesa \
mold \
ninja \
libc-dev \
zlib-dev \
libunwind-dev
zlib \
libunwind
RUN pip install --no-cache-dir --break-system-packages conan gitpython \
&& conan profile detect
@ -50,7 +46,7 @@ RUN cd llvm-project/ \
-DLLVM_USE_SANITIZER=Leaks \
../runtimes &&\
ninja cxx cxxabi && \
cd ../\
cd ../ \
&& DESTDIR="/libcxx_lsan" ninja -C build install-cxx install-cxxabi\
&& rm -rf /usr/src/llvm-project/