Skip to content

Commit

Permalink
Merge branch 'develop' into KDESKTOP-468-POC-reuse-socket
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementKunz authored Apr 3, 2024
2 parents 9c53f9c + baaa56f commit 9dfc583
Show file tree
Hide file tree
Showing 18 changed files with 455 additions and 379 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/linux.yml
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
58 changes: 58 additions & 0 deletions infomaniak-build-tools/linux/build-ci-amd64.sh
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
Loading

0 comments on commit 9dfc583

Please sign in to comment.