Skip to content

Commit

Permalink
ci: Limit Windows builds to 3 threads (enabling PGO makes linking exc…
Browse files Browse the repository at this point in the history
…eed runner's RAM)
  • Loading branch information
MajorP93 committed Dec 4, 2024
1 parent 87313ae commit ba452fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
run: cmake --fresh -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_PGO=ON -DENABLE_ARCH_AVX2=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel $env:NUMBER_OF_PROCESSORS
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 3

- name: Upload Windows SDL artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
run: cmake --fresh -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_QT_GUI=ON -DENABLE_UPDATER=ON -DENABLE_PGO=ON -DENABLE_ARCH_AVX2=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel $env:NUMBER_OF_PROCESSORS
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 3

- name: Deploy and Package
run: |
Expand Down

0 comments on commit ba452fb

Please sign in to comment.