-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #592 from COVESA/ubuntu-ci
CI for ubuntu 22 and 24
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
SRC_DIR=$(pwd) | ||
BUILD_DIR="${SRC_DIR}/build" | ||
INSTALL_DIR="${BUILD_DIR}/install" | ||
APP_DIR_NAME="DLTViewer" | ||
|
||
NPROC=$(nproc) | ||
echo Nb of cpus: ${NPROC} | ||
|
||
echo Cleanup | ||
rm -rf "${APP_DIR_NAME}" | ||
rm -rf "${INSTALL_DIR}" | ||
rm -rf "${BUILD_DIR}" | ||
mkdir -p "${BUILD_DIR}" | ||
cd "${BUILD_DIR}" | ||
|
||
echo Build with CMake | ||
cmake -G Ninja \ | ||
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DDLT_USE_QT_RPATH=ON \ | ||
-DDLT_PARSER=OFF \ | ||
-DDLT_APP_DIR_NAME=${APP_DIR_NAME} \ | ||
-DDLT_LIBRARY_INSTALLATION_PATH="${APP_DIR_NAME}/usr/lib" \ | ||
-DDLT_EXECUTABLE_INSTALLATION_PATH="${APP_DIR_NAME}/usr/bin" \ | ||
-DDLT_RESOURCE_INSTALLATION_PATH="${APP_DIR_NAME}/usr/share" \ | ||
-DDLT_PLUGIN_INSTALLATION_PATH="${APP_DIR_NAME}/usr/bin/plugins" \ | ||
"${SRC_DIR}" | ||
|
||
cmake --build "${BUILD_DIR}" -j ${NPROC} -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
id | ||
env | ||
pwd | ||
|
||
UBUNTU_VERSION=$(lsb_release -rs) | ||
QT_PACKAGES="" | ||
# for ubuntu 22 install QT 5, for ubuntu 24 install QT 6 | ||
if [ "$UBUNTU_VERSION" = "22.04" ]; then | ||
QT_PACKAGES="qtbase5-dev libqt5serialport5-dev" | ||
else | ||
QT_PACKAGES="qt6-base-dev libqt6serialport6-dev" | ||
fi | ||
|
||
sudo apt update | ||
sudo apt-get install -y --no-install-recommends ninja-build ${QT_PACKAGES} | ||
|
||
g++ --version |