ci: add packing job

This commit is contained in:
Konstantin Lampalzer 2024-09-23 13:34:34 +02:00
parent 1791063fa8
commit 3836d1480b
6 changed files with 72 additions and 44 deletions

View file

@ -2,7 +2,7 @@ FROM ubuntu:24.04
RUN apt update && \
apt install -y \
build-essential cmake file \
build-essential cmake git file \
libboost-system-dev libboost-thread-dev \
libgtest-dev googletest && \
rm -rf /var/lib/apt/lists/*
@ -11,7 +11,4 @@ WORKDIR /libcreate
COPY . .
WORKDIR /libcreate/build
RUN 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
ENTRYPOINT ["/bin/bash", "/libcreate/ci/entrypoint.sh"]

10
ci/entrypoint.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
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