Skip to content

Commit 1963f0b

Browse files
authored
[Backport to 14] [CI] Move away from hardcoded -j2 (#3483) (#3515)
Instead of the hardcoded `-j2`, use the number of available processing units. Fixes #3481 (cherry picked from commit f20a37d)
1 parent 8a39af8 commit 1963f0b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/check-in-tree-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ jobs:
101101
- name: Build
102102
run: |
103103
cd build
104-
make llvm-spirv -j2
104+
make llvm-spirv -j$(nproc)
105105
- name: Build tests & test
106106
run: |
107107
cd build
108-
make check-llvm-spirv -j2
108+
make check-llvm-spirv -j$(nproc)
109109
110110
build_windows:
111111
name: Windows
@@ -200,7 +200,7 @@ jobs:
200200
- name: Build
201201
run: |
202202
cd build
203-
make llvm-spirv -j2
203+
make llvm-spirv -j$(sysctl -n hw.logicalcpu)
204204
# FIXME: Testing is disabled at the moment as it requires clang to be present
205205
# - name: Build tests & test
206206
# run: |

.github/workflows/check-out-of-tree-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ jobs:
8484
- name: Build
8585
run: |
8686
cd build
87-
make llvm-spirv -j2
87+
make llvm-spirv -j$(nproc)
8888
- name: Build tests & test
8989
run: |
9090
cd build
91-
make check-llvm-spirv -j2
91+
make check-llvm-spirv -j$(nproc)

0 commit comments

Comments
 (0)