Skip to content

Commit 94d36bb

Browse files
authored
Update buildbinaryen.yml.
1 parent 41febce commit 94d36bb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/buildbinaryen.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,17 @@ jobs:
4444

4545
- name: Configure
4646
run: cmake -S binaryen -B binaryen/build ${{ matrix.cmake-args }}
47-
47+
4848
- name: Build
49-
run: cmake --build binaryen/build -- -j$(nproc || sysctl -n hw.ncpu)
49+
run: |
50+
if [ "${{ runner.os }}" = "Linux" ]; then
51+
cmake --build binaryen/build -- -j$(nproc)
52+
elif [ "${{ runner.os }}" = "macOS" ]; then
53+
cmake --build binaryen/build -- -j$(sysctl -n hw.ncpu)
54+
else
55+
cmake --build binaryen/build -- -j
56+
fi
57+
shell: bash
5058

5159
- name: Copy to NuGet runtime folder
5260
run: |

0 commit comments

Comments
 (0)