From 2534247aeee061a9ed8a7f1324c0e9b9121c2959 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 | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) 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..e0e2a551 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -144,7 +144,7 @@ do echo # shellcheck disable=SC2086 - ./configure $features $* + ./configure -C $features $* $MAKE CC="${CC}" $MAKE check