From faa3171ff22fea1c001e5a9b01d964aa425a3387 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Mon, 7 Jul 2025 10:30:41 +0200 Subject: [PATCH] ci: Use optimized Debug build type in test-each-commit --- .github/ci-test-each-commit-exec.py | 8 +++++++- .github/workflows/ci.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/ci-test-each-commit-exec.py b/.github/ci-test-each-commit-exec.py index 7811418a5fb..3b2eaeeb596 100755 --- a/.github/ci-test-each-commit-exec.py +++ b/.github/ci-test-each-commit-exec.py @@ -22,14 +22,20 @@ def main(): num_procs = int(run(["nproc"], stdout=subprocess.PIPE).stdout) - # Use clang++, because it is a bit faster and uses less memory than g++ run([ "cmake", "-B", "build", "-Werror=dev", + # Use clang++, because it is a bit faster and uses less memory than g++ "-DCMAKE_C_COMPILER=clang", "-DCMAKE_CXX_COMPILER=clang++", + # Use mold, because it is faster than the default linker + "-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=mold", + # Use Debug build type for more debug checks, but enable optimizations + "-DAPPEND_CXXFLAGS='-O3 -g2'", + "-DAPPEND_CFLAGS='-O3 -g2'", + "-DCMAKE_BUILD_TYPE=Debug", "-DWERROR=ON", "-DWITH_ZMQ=ON", "-DBUILD_GUI=ON", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e2ed480989..d2526abdc38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,7 +77,7 @@ jobs: git config user.name "CI" - run: | sudo apt-get update - sudo apt-get install clang ccache build-essential cmake ninja-build pkgconf python3-zmq libevent-dev libboost-dev libsqlite3-dev systemtap-sdt-dev libzmq3-dev qt6-base-dev qt6-tools-dev qt6-l10n-tools libqrencode-dev -y + sudo apt-get install clang mold ccache build-essential cmake ninja-build pkgconf python3-zmq libevent-dev libboost-dev libsqlite3-dev systemtap-sdt-dev libzmq3-dev qt6-base-dev qt6-tools-dev qt6-l10n-tools libqrencode-dev -y - name: Compile and run tests run: | # Run tests on commits after the last merge commit and before the PR head commit