chore: Add a full-build shell script for use in CI/docker (#5167)

This commit is contained in:
pajlada 2024-02-10 21:39:16 +01:00 committed by GitHub
parent 7a70d785a4
commit a6e5505fb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

21
.CI/full-ubuntu-build.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
set -e
mkdir build
cmake -B build
CXXFLAGS=-fno-sized-deallocation cmake \
-B build \
-DCMAKE_INSTALL_PREFIX=appdir/usr/ \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_PRECOMPILED_HEADERS=OFF \
-DCMAKE_EXPORT_COMPILE_COMMANDS=On \
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \
-DCMAKE_PREFIX_PATH="$Qt6_DIR/lib/cmake" \
-DBUILD_WITH_QT6="$C2_BUILD_WITH_QT6" \
..
cmake --build build
# TODO: Test appimage/deb creation
# sh ./../.CI/CreateAppImage.sh
# sh ./../.CI/CreateUbuntuDeb.sh