ci: add packing job
This commit is contained in:
parent
1791063fa8
commit
3836d1480b
6 changed files with 72 additions and 44 deletions
|
@ -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
10
ci/entrypoint.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue