-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into KDESKTOP-468-POC-reuse-socket
- Loading branch information
Showing
18 changed files
with
455 additions
and
379 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Linux kDrive desktop CI on x64 Arch | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize, review_requested, ready_for_review] | ||
|
||
concurrency: | ||
group: ${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-kDrive: | ||
if: github.event.pull_request.draft == false | ||
runs-on: [ self-hosted, Linux, X64, desktop-kdrive ] | ||
|
||
steps: | ||
- name: Checkout the PR | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Grant building script execute permission | ||
run : chmod +x ./infomaniak-build-tools/linux/build-ci-amd64.sh | ||
- name: Build kDrive desktop | ||
run : ./infomaniak-build-tools/linux/build-ci-amd64.sh | ||
|
||
- name: Clean-up generated code | ||
run : rm -rf build-linux |
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,58 @@ | ||
#! /bin/bash | ||
|
||
ulimit -n 4000000 | ||
|
||
set -xe | ||
|
||
export QT_BASE_DIR="~/Qt/6.2.3" | ||
export QTDIR="$QT_BASE_DIR/gcc_64" | ||
export BASEPATH=$PWD | ||
export CONTENTDIR="$BASEPATH/build-linux" | ||
export INSTALLDIR="$CONTENTDIR/install" | ||
export BUILDDIR="$CONTENTDIR/build" | ||
export APPDIR="$CONTENTDIR/app" | ||
|
||
|
||
mkdir -p $APPDIR | ||
mkdir -p $BUILDDIR | ||
mkdir -p $INSTALLDIR | ||
|
||
export QMAKE=$QTDIR/bin/qmake | ||
export PATH=$QTDIR/bin:$QTDIR/libexec:$PATH | ||
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH | ||
export PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH | ||
|
||
# Set defaults | ||
export SUFFIX="" | ||
|
||
# Build client | ||
cd $BUILDDIR | ||
mkdir -p $BUILDDIR/client | ||
cd client | ||
|
||
CMAKE_PARAMS=() | ||
|
||
export KDRIVE_DEBUG=0 | ||
|
||
cmake -B$BUILDDIR -H$BASEPATH \ | ||
-DQTDIR=$QTDIR \ | ||
-DOPENSSL_ROOT_DIR=/usr/local \ | ||
-DOPENSSL_INCLUDE_DIR=/usr/local/include \ | ||
-DOPENSSL_CRYPTO_LIBRARY=/usr/local/lib64/libcrypto.so \ | ||
-DOPENSSL_SSL_LIBRARY=/usr/local/lib64/libssl.so \ | ||
-DQT_FEATURE_neon=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_PREFIX_PATH=$BASEPATH \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DBIN_INSTALL_DIR=$BUILDDIR/client \ | ||
-DKDRIVE_VERSION_SUFFIX=$SUFFIX \ | ||
-DKDRIVE_THEME_DIR="$BASEPATH/infomaniak" \ | ||
-DWITH_CRASHREPORTER=0 \ | ||
-DKDRIVE_VERSION_BUILD="$(date +%Y%m%d)" \ | ||
-DBUILD_UNIT_TESTS=0 \ | ||
"${CMAKE_PARAMS[@]}" \ | ||
|
||
cd $BUILDDIR | ||
|
||
make -j4 | ||
make DESTDIR=$APPDIR install |
Oops, something went wrong.