mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
5bed41a670
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
25 lines
935 B
YAML
25 lines
935 B
YAML
name: Linux Clang compilation and tests
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
build:
|
|
name: Linux Clang compilation and tests
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/nextcloud/continuous-integration-client-qt6:client-6.6.3-2
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
- name: Configure and compile
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake .. -G Ninja -DCMAKE_PREFIX_PATH=/opt/qt6.6.3 -DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_BUILD_TYPE=Debug -DQT_MAJOR_VERSION=6 -DQUICK_COMPILER=ON -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DCMAKE_CXX_FLAGS=-Werror -DOPENSSL_ROOT_DIR=/usr/local/lib64
|
|
ninja
|
|
- name: Run tests
|
|
run: |
|
|
cd build
|
|
useradd -m -s /bin/bash test
|
|
chown -R test:test .
|
|
su -c 'xvfb-run ctest --output-on-failure' test
|