From 3fa96eec18e087f3f286df7ff4b5d191018a3ca4 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 70a4bf9b..e9391f36 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 a48d4136..507dbaa9 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 981f223c..ab0ed3a7 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