Skip to content

Commit

Permalink
Parallel build in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Jun 2, 2024
1 parent e7afd89 commit bc80d98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
runs-on: windows-latest

steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- uses: actions/checkout@v3
with:
submodules: recursive
Expand All @@ -27,7 +31,7 @@ jobs:

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j ${{ steps.cpu-cores.outputs.count }}

- name: Install
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Expand Down

0 comments on commit bc80d98

Please sign in to comment.