From dafb286101e62802f036df552a91abd52289f75e Mon Sep 17 00:00:00 2001 From: aqua Date: Mon, 5 Sep 2022 16:17:07 +0300 Subject: Add ccache to debug build preset --- CMakePresets.json | 1 + INSTALL.md | 3 ++- bitbucket-pipelines.yml | 40 +++++++++++++++++++--------------------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 77af2829..de1ec900 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -13,6 +13,7 @@ "CMAKE_CXX_FLAGS_DEBUG": "-g -Og", "CMAKE_CXX_STANDARD": "20", "CMAKE_CXX_STANDARD_REQUIRED": "YES", + "CMAKE_CXX_COMPILER_LAUNCHER": "ccache", "CMAKE_CXX_CLANG_TIDY": "clang-tidy", "MEMORYCHECK_COMMAND": "valgrind", "MEMORYCHECK_COMMAND_OPTIONS": "--leak-check=full --show-leak-kinds=all --gen-suppressions=all" diff --git a/INSTALL.md b/INSTALL.md index ca401f44..d6fda847 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -15,9 +15,10 @@ To build, rekonq needs at least: ``Debug`` builds have the following additional dependencies: - gtest and gmock - gcov, lcov -- clang-tidy - python-lxml for some of the scripts +Debug build preset also uses ccache and clang-tidy. + ## Building rekonq diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 1c2cf424..81f0bdde 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -21,24 +21,22 @@ pipelines: - cmake --preset debug -GNinja - ninja -C cmake-build-debug rekonq_check_license - git ls-files | grep '\.qrc$' | xargs -n1 ./scripts/qrc_lint.py - - step: - name: Debug Build Test - runs-on: - - 'self.hosted' - - 'linux.shell' - script: - - git submodule update --init - - cmake --preset debug -GNinja - - cmake --build --preset debug - - ctest --preset debug --output-junit test-results/all.xml - custom: - FullBuildTest: - - step: - name: Release Build - runs-on: - - 'self.hosted' - - 'linux.shell' - script: - - git submodule update --init - - cmake --preset release -GNinja - - cmake --build --preset release + - step: + name: Debug Build and Test + runs-on: + - 'self.hosted' + - 'linux.shell' + script: + - git submodule update --init + - cmake --preset debug -GNinja + - cmake --build --preset debug + - ctest --preset debug --output-junit test-results/all.xml + - step: + name: Release Build + runs-on: + - 'self.hosted' + - 'linux.shell' + script: + - git submodule update --init + - cmake --preset release -GNinja + - cmake --build --preset release -- cgit v1.2.1