Skip to content

Commit

Permalink
Merge pull request #6395 from nextcloud/backport/6363/stable-3.12
Browse files Browse the repository at this point in the history
[stable-3.12] partial move of some checks done with drone to github actions
  • Loading branch information
mgallien committed Jan 30, 2024
2 parents 297cd01 + 40b0202 commit 4147cae
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/linux-clang-compile-tests.yml
Original file line number Diff line number Diff line change
@@ -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: Configure and compile
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
25 changes: 25 additions & 0 deletions .github/workflows/linux-gcc-compile-tests.yml
Original file line number Diff line number Diff line change
@@ -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: Configure and compile
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

0 comments on commit 4147cae

Please sign in to comment.