From d1727fe8f3c5fcbe8679f8c3e1cc3b98cc6ca99e Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Tue, 11 Apr 2023 20:58:39 -0700 Subject: Use additional CPUs in GitHub actions (#2695) * Build: 3 CPUs * Tests: 2 CPUs For both Autotools and CMake --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 35c0d64..ea63fd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -514,12 +514,12 @@ jobs: # - name: Autotools Build - run: make + run: make -j3 working-directory: ${{ runner.workspace }}/build if: matrix.generator == 'autogen' - name: CMake Build - run: cmake --build . --config ${{ matrix.build_mode.cmake }} + run: cmake --build . --parallel 3 --config ${{ matrix.build_mode.cmake }} working-directory: ${{ runner.workspace }}/build if: matrix.generator != 'autogen' @@ -528,12 +528,12 @@ jobs: # - name: Autotools Run Tests - run: make check + run: make check -j2 working-directory: ${{ runner.workspace }}/build if: (matrix.generator == 'autogen') && (matrix.run_tests) - name: CMake Run Tests - run: ctest --build . -C ${{ matrix.build_mode.cmake }} -V + run: ctest --build . --parallel 2 -C ${{ matrix.build_mode.cmake }} -V working-directory: ${{ runner.workspace }}/build # Skip Debug MSVC while we investigate H5L Java test timeouts if: (matrix.generator != 'autogen') && (matrix.run_tests) && ! ((matrix.name == 'Windows MSVC CMake') && (matrix.build_mode.cmake == 'Debug')) -- cgit v0.12