From d748ffc52724142940d7b7cd09ab015dd4cb7d02 Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Tue, 2 Sep 2025 14:45:48 +0200 Subject: [PATCH] build: Add multithreading to `make` nproc is a standard util that prints amount of available processes. -j is a flag that specifies how many cores can be utilized by `make` (default is 1) -j$(nproc) allows to use all the available machine cores, potentially significantly speeding up completion of CI actions --- Dockerfile.debian | 2 +- Dockerfile.fedora | 2 +- Dockerfile.ubuntu | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.debian b/Dockerfile.debian index 114aec28..504e01b1 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -47,7 +47,7 @@ RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe WORKDIR /usr/src/libstrophe RUN ./bootstrap.sh RUN ./configure --prefix=/usr -RUN make +RUN make -j$(nproc) RUN make install WORKDIR /usr/src/profanity diff --git a/Dockerfile.fedora b/Dockerfile.fedora index c8004c11..208c9c28 100644 --- a/Dockerfile.fedora +++ b/Dockerfile.fedora @@ -60,7 +60,7 @@ RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe WORKDIR /usr/src/libstrophe RUN ./bootstrap.sh RUN ./configure --prefix=/usr -RUN make +RUN make -j$(nproc) RUN make install RUN mkdir -p /usr/src/profanity diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index 7f100ddd..1d568517 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -49,7 +49,7 @@ RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe WORKDIR /usr/src/libstrophe RUN ./bootstrap.sh RUN ./configure --prefix=/usr -RUN make +RUN make -j$(nproc) RUN make install WORKDIR /usr/src/profanity