Skip to content

Commit

Permalink
parallelize building
Browse files Browse the repository at this point in the history
  • Loading branch information
WinteryFox committed Nov 10, 2023
1 parent fc154a5 commit 7e31af7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 7e31af7

Please sign in to comment.