Skip to content

Commit 60f81a9

Browse files
fix command not found on macOS CI/CD
1 parent 158f7e8 commit 60f81a9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@ jobs:
3434
ruff check .
3535
3636
- name: Build executables manually
37+
shell: bash
3738
run: |
3839
echo "Building for ${{ runner.os }}..."
39-
THREADS=$(nproc)
40-
40+
41+
if [[ "${{ runner.os }}" == "Linux" || "${{ runner.os }}" == "Windows" ]]; then
42+
THREADS=$(nproc)
43+
elif [[ "${{ runner.os }}" == "macOS" ]]; then
44+
THREADS=$(sysctl -n hw.logicalcpu)
45+
fi
46+
4147
if [[ "${{ runner.os }}" == "macOS" ]]; then
4248
python3 -m nuitka main.py \
4349
--standalone \

0 commit comments

Comments
 (0)