add nproc for macos

This commit is contained in:
duhow
2024-08-23 18:30:31 +02:00
committed by Martin Michelsen
parent f9986f5ac5
commit 075c576116
+10 -1
View File
@@ -27,7 +27,16 @@ jobs:
- name: Install libraries (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: brew install libevent
run: |
brew install libevent
cat << EOF > nproc
#!/bin/sh
sysctl -n hw.logicalcpu
EOF
chmod a+x nproc
sudo cp nproc /usr/local/bin/nproc
rm -f nproc
- name: Install phosg
run: |