From de8e144a538aec6961eb6172b1bf9833d0750c93 Mon Sep 17 00:00:00 2001 From: mephi42 Date: Sun, 11 Aug 2024 13:53:03 +0200 Subject: [PATCH] Disable valgrind automake dependency tracking in the CI Locally this saves 15 seconds. https://www.gnu.org/software/automake/manual/automake.html#Dependencies --- .github/workflows/ci.yml | 5 ++++- .github/workflows/ci.yml.j2 | 5 ++++- CMakeLists.txt | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f0bc17d1..05afb9599 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,9 @@ jobs: run: python3 setup.py sdist - name: Build - run: PATH=/usr/lib/ccache:$PATH ./ci --skip-repair + run: PATH=/usr/lib/ccache:$PATH ./ci + --skip-repair + -DVALGRIND_CONFIGURE_FLAGS=--disable-dependency-tracking - name: Smoke test run: python3 -m pip install --user dist/wheelhouse/*.whl && @@ -113,6 +115,7 @@ jobs: run: ./ci-docker --arch=${{ matrix.arch }} --python=${{ matrix.python }} + -DVALGRIND_CONFIGURE_FLAGS=--disable-dependency-tracking - name: Show ccache stats run: ccache --show-stats --verbose diff --git a/.github/workflows/ci.yml.j2 b/.github/workflows/ci.yml.j2 index 6c7fb6d2b..700cadc5f 100644 --- a/.github/workflows/ci.yml.j2 +++ b/.github/workflows/ci.yml.j2 @@ -76,7 +76,9 @@ jobs: run: python3 setup.py sdist - name: Build - run: PATH=/usr/lib/ccache:$PATH ./ci --skip-repair + run: PATH=/usr/lib/ccache:$PATH ./ci + --skip-repair + -DVALGRIND_CONFIGURE_FLAGS=--disable-dependency-tracking - name: Smoke test run: python3 -m pip install --user dist/wheelhouse/*.whl && @@ -103,6 +105,7 @@ jobs: run: ./ci-docker --arch={% raw %}${{ matrix.arch }}{% endraw %} --python={% raw %}${{ matrix.python }}{% endraw %} + -DVALGRIND_CONFIGURE_FLAGS=--disable-dependency-tracking {{ steps_post("cross-${{ matrix.arch }}-${{ matrix.python }}") }} PyPI: diff --git a/CMakeLists.txt b/CMakeLists.txt index a7efb92ae..f8b087d97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,7 @@ add_custom_command( --prefix=${valgrind_install} --with-mpicc=false --with-gdbscripts-dir=no + ${VALGRIND_CONFIGURE_FLAGS} DEPENDS ${valgrind_src}/configure WORKING_DIRECTORY ${valgrind_build} )