cmake: do not install to opt

This commit is contained in:
Konstantin Lampalzer 2024-09-23 21:13:21 +02:00
parent f3cafc241d
commit 78424d187c
3 changed files with 7 additions and 11 deletions

View file

@ -2,7 +2,7 @@ FROM debian:bookworm
RUN apt update && \
apt install -y \
build-essential cmake git file \
build-essential cmake git file tree \
libboost-system-dev libboost-thread-dev \
libgtest-dev googletest && \
rm -rf /var/lib/apt/lists/*

View file

@ -7,4 +7,9 @@ set -o pipefail
cmake -B /libcreate/build -S /libcreate -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS='-Werror'
cmake --build /libcreate/build --config Release
ctest -C Release --output-on-failure
cpack --build /libcreate/build -G DEB
cpack --build /libcreate/build -G DEB
debs=(/libcreate/_packages/*.deb)
cp "${debs[0]}" /tmp/libcreate.deb
dpkg-deb -R /tmp/libcreate.deb /tmp/libcreate
tree /tmp/libcreate