From 3a11ab0f78eacf82592a5c6e4b6a59dbc779a1c8 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 19 Jan 2024 10:38:19 +0100 Subject: [PATCH] partial move of some checks done with drone to github actions Signed-off-by: Matthieu Gallien --- .../workflows/linux-clang-compile-tests.yml | 25 +++++++++++++++++++ .github/workflows/linux-gcc-compile-tests.yml | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/linux-clang-compile-tests.yml create mode 100644 .github/workflows/linux-gcc-compile-tests.yml diff --git a/.github/workflows/linux-clang-compile-tests.yml b/.github/workflows/linux-clang-compile-tests.yml new file mode 100644 index 0000000000000..c342f3e7ab0d6 --- /dev/null +++ b/.github/workflows/linux-clang-compile-tests.yml @@ -0,0 +1,25 @@ +name: Linux Clang compilation and tests +on: + pull_request: + types: [opened, synchronize, reopened] +jobs: + build: + name: Linux Clang compilation and tests + runs-on: ubuntu-22.04 + container: ghcr.io/nextcloud/continuous-integration-client:client-5.15-14 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Run build-wrapper + run: | + mkdir build + cd build + cmake .. -G Ninja -DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_BUILD_TYPE=Debug -DQUICK_COMPILER=ON -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DECM_ENABLE_SANITIZERS=address -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 'ASAN_OPTIONS=detect_odr_violation=0,detect_leaks=0 xvfb-run ctest --output-on-failure' test diff --git a/.github/workflows/linux-gcc-compile-tests.yml b/.github/workflows/linux-gcc-compile-tests.yml new file mode 100644 index 0000000000000..aace863d33d55 --- /dev/null +++ b/.github/workflows/linux-gcc-compile-tests.yml @@ -0,0 +1,25 @@ +name: Linux GCC compilation and tests +on: + pull_request: + types: [opened, synchronize, reopened] +jobs: + build: + name: Linux GCC compilation and tests + runs-on: ubuntu-22.04 + container: ghcr.io/nextcloud/continuous-integration-client:client-5.15-14 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Run build-wrapper + run: | + mkdir build + cd build + cmake .. -G Ninja -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Debug -DQUICK_COMPILER=ON -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DECM_ENABLE_SANITIZERS=address -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 'ASAN_OPTIONS=detect_odr_violation=0,detect_leaks=0 xvfb-run ctest --output-on-failure' test