]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/non-native: drop building docs with autotools on emulated CPU
authorViktor Szakats <commit@vsz.me>
Fri, 14 Mar 2025 21:01:49 +0000 (22:01 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 14 Mar 2025 22:08:22 +0000 (23:08 +0100)
It saves about 1 minute (10%) per run.
Also reduces log length from 3800 to 2800 lines.

Keep building docs on native CPU.

Closes #16731

.github/workflows/non-native.yml

index 1336ea8edc3a5eb9fb8cdf3e1214d01aa821b293..3f028630fc27f8e39a8fb3b9833623fe38dcc341 100644 (file)
@@ -146,11 +146,15 @@ jobs:
               pkgconf brotli openldap26-client libidn2 libnghttp2 stunnel py311-impacket
             time autoreconf -fi
             export CC='${{ matrix.compiler }}'
+            if [ '${{ matrix.arch }}' != 'x86_64' ]; then
+              options='--disable-manual --disable-docs'  # Slow with autotools, skip on emulated CPU
+            fi
             mkdir bld && cd bld && time ../configure --enable-unity --enable-test-bundles --enable-debug --enable-warnings --enable-werror \
               --prefix="${HOME}"/install \
               --with-openssl \
               --with-brotli --enable-ldap --enable-ldaps --with-libidn2 --with-libssh2 --with-nghttp2 --with-gssapi \
               --disable-dependency-tracking \
+              ${options} \
               ${{ matrix.options }} \
               || { tail -n 1000 config.log; false; }
             echo '::group::curl_config.h (raw)'; cat lib/curl_config.h || true; echo '::endgroup::'