]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: ssl: enable parallel builds for OpenSSL on Linux
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Jun 2021 05:52:23 +0000 (07:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 13:05:24 +0000 (15:05 +0200)
Running the "make all" phase on my machine with -j$(nproc) shrinks the
build time from 4'52 to 1'28. It will not be that big of a change in
the CI since it looks like two CPUs are exposed, but it should still
remain a net win. Let's enable it. The install phase obviously remains
sequential however.

scripts/build-ssl.sh

index 9a6a2b241002532e06206420828a329e764b950e..b36593e4e6c23548fdcbd8c3eea327a7e96d0a48 100755 (executable)
@@ -21,7 +21,8 @@ build_openssl_linux () {
     (
         cd "openssl-${OPENSSL_VERSION}/"
         ./config shared --prefix="${HOME}/opt" --openssldir="${HOME}/opt" -DPURIFY
-        make all install_sw
+        make -j$(nproc) all
+        make install_sw
     )
 }