2024-01-19 12:38:19 +03:00
|
|
|
name: Linux GCC compilation and tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Linux GCC compilation and tests
|
2024-03-15 13:34:41 +03:00
|
|
|
runs-on: ubuntu-latest
|
2024-04-23 13:27:53 +03:00
|
|
|
container: ghcr.io/nextcloud/continuous-integration-client-qt6:client-6.6.3-2
|
2024-01-19 12:38:19 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
- name: Configure and compile
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2024-04-10 09:58:03 +03:00
|
|
|
cmake .. -G Ninja -DCMAKE_PREFIX_PATH=/opt/qt6.6.3 -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -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
|
2024-01-19 12:38:19 +03:00
|
|
|
ninja
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
useradd -m -s /bin/bash test
|
|
|
|
chown -R test:test .
|
2024-03-15 20:55:11 +03:00
|
|
|
su -c 'xvfb-run ctest --output-on-failure' test
|