From 21d86a328f3c2f14fbef60152273d85c106547ed Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 12 May 2025 08:54:20 +0100 Subject: [PATCH] Configure CPack to use all available threads It doesn't have any effect with the 7Z generator that's used on Windows, but I've added it for Windows anyway in case that changes in a future version of CMake. --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fad8b203..b0217a73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,7 @@ jobs: cmake \ -DCMAKE_PREFIX_PATH="${{ steps.boost-metadata.outputs.root }}\stage" \ -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" \ + -DCPACK_THREADS=0 \ -B build cmake --build build --parallel @@ -195,6 +196,7 @@ jobs: -A ${{ matrix.platform }} ` -DCMAKE_PREFIX_PATH="${{ steps.boost-metadata.outputs.root }}\stage" ` -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" ` + -DCPACK_THREADS=0 ` -B build cmake --build build --parallel --config ${{ env.MSVC_CONFIG }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6adc046c..9b2b5579 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,6 +90,7 @@ jobs: -A ${{ matrix.platform }} ` -DCMAKE_PREFIX_PATH="${{ steps.boost-metadata.outputs.root }}\stage" ` -DCPACK_PACKAGE_VERSION="${{ needs.create_release.outputs.git_tag }}" ` + -DCPACK_THREADS=0 ` -B build cmake --build build --parallel --config ${{ env.MSVC_CONFIG }}