From 886372caac14c64ccce8c64edd3d96e9030098ca Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Tue, 2 Sep 2025 15:10:03 +0200 Subject: [PATCH] build: add cache to ./configure with -C flag Add the -C flag to ./configure to enable caching, reducing redundant resource fetching during builds when packages and the machine remain unchanged. Caching may cause issues only if applied across different machines or if packages are modified, neither of which is the case during the build. --- Dockerfile.debian | 1 + Dockerfile.fedora | 1 + Dockerfile.ubuntu | 1 + ci-build.sh | 8 ++++---- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile.debian b/Dockerfile.debian index ff8fb04d..5b4c1823 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ autoconf \ autoconf-archive \ automake \ + ca-certificates \ expect \ gcc \ git \ diff --git a/Dockerfile.fedora b/Dockerfile.fedora index 889f75eb..3838cde2 100644 --- a/Dockerfile.fedora +++ b/Dockerfile.fedora @@ -9,6 +9,7 @@ RUN dnf install -y \ autoconf-archive \ automake \ awk \ + ca-certificates \ expect-devel \ gcc \ git \ diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index 53761022..5c353194 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ autoconf \ autoconf-archive \ automake \ + ca-certificates \ expect \ gcc \ git \ diff --git a/ci-build.sh b/ci-build.sh index 82ff76ff..43f01fe5 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -121,11 +121,11 @@ esac case "$ARCH" in linux*) echo - echo "--> Building with ./configure ${tests[0]} --enable-valgrind $*" + echo "--> Building with ./configure -C ${tests[0]} --enable-valgrind $*" echo # shellcheck disable=SC2086 - ./configure ${tests[0]} --enable-valgrind $* + ./configure -C ${tests[0]} --enable-valgrind $* $MAKE CC="${CC}" if grep '^ID=' /etc/os-release | grep -q -e debian; then @@ -140,11 +140,11 @@ esac for features in "${tests[@]}" do echo - echo "--> Building with ./configure ${features} $*" + echo "--> Building with ./configure -C ${features} $*" echo # shellcheck disable=SC2086 - ./configure $features $* + ./configure -C $features $* $MAKE CC="${CC}" $MAKE check