From 0a96b878f78cb925afb60f142707eb59b57781f9 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 14 Aug 2025 23:43:34 +0200 Subject: [PATCH] GHA/linux: build `-O3` job with unity batches to save 10-15s Before (build, test run): https://github.com/curl/curl/actions/runs/16974205126/job/48118716664 25s, 12m56 https://github.com/curl/curl/actions/runs/16973102133/job/48114977897 24s, 12m51 After, with batch size 50 (build, test run): https://github.com/curl/curl/actions/runs/17250901063/job/48952645881?pr=18293 16s, 12m51 https://github.com/curl/curl/actions/runs/17250901063/job/48953665204?pr=18293 17s, 12m42 Closes #18293 --- .github/workflows/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8b1c37ba06..656851030b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -173,7 +173,7 @@ jobs: - name: 'openssl -O3 libssh valgrind' install_packages: zlib1g-dev libssh-dev valgrind CFLAGS: -O3 - generate: -DENABLE_DEBUG=ON -DCURL_USE_LIBSSH=ON + generate: -DENABLE_DEBUG=ON -DCURL_USE_LIBSSH=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=50 - name: 'openssl clang krb5 openldap static' install_steps: openldap-static -- 2.47.3