From e2ed8a01b19497743afd0c4b77127dfb7cc4ae81 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 11 May 2025 17:32:13 +0100 Subject: [PATCH] CMake build with --parallel in GitHub Actions --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8e5dae7..af1412ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,7 +89,7 @@ jobs: -DCMAKE_PREFIX_PATH="${{ steps.boost-metadata.outputs.root }}\stage" \ -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" \ -B build - cmake --build build + cmake --build build --parallel - name: Run tests run: ctest --test-dir build --output-on-failure --parallel @@ -196,7 +196,7 @@ jobs: -DCMAKE_PREFIX_PATH="${{ steps.boost-metadata.outputs.root }}\stage" ` -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" ` -B build - cmake --build build --config ${{ env.MSVC_CONFIG }} + cmake --build build --parallel --config ${{ env.MSVC_CONFIG }} - name: Run tests run: ctest --test-dir build --build-config ${{ env.MSVC_CONFIG }} --output-on-failure --parallel diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2abbcf43..edf891ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,7 +91,7 @@ jobs: -DCMAKE_PREFIX_PATH="${{ steps.boost-metadata.outputs.root }}\stage" ` -DCPACK_PACKAGE_VERSION="${{ needs.create_release.outputs.git_tag }}" ` -B build - cmake --build build --config ${{ env.MSVC_CONFIG }} + cmake --build build --parallel --config ${{ env.MSVC_CONFIG }} - uses: actions/setup-python@v5 with: