diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 732d588..44d757d 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -31,6 +31,9 @@ jobs: with: fetch-depth: 0 + - uses: SimenB/github-actions-cpu-cores@v1 + id: cpu-cores + - name: Set reusable strings id: strings shell: bash @@ -46,7 +49,10 @@ jobs: -S ${{ github.workspace }} - name: Build - run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} + run: > + cmake --build ${{ steps.strings.outputs.build-output-dir }} + --config ${{ matrix.build_type }} + -j ${{ steps.cpu-cores.outputs.count }} - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }}