Skip to content

Commit 5c2461b

Browse files
authored
not always gh mac runners have nproc utility (#1612)
1 parent 73751cd commit 5c2461b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

assembly/native/build-macos-portable.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ git clone https://github.com/lz4/lz4.git ../3pp/lz4
5555
cd ../3pp/lz4
5656
lz4Path=`pwd`
5757
git checkout v1.9.4
58-
make -j$(nproc)
58+
make -j4
5959
test $? -eq 0 || { echo "Can't compile lz4"; exit 1; }
6060
cd ../../build
6161
# ./lib/liblz4.a
@@ -73,7 +73,7 @@ if [ ! -d "../3pp/libsodium" ]; then
7373
git checkout 1.0.18
7474
./autogen.sh
7575
./configure --with-pic --enable-static
76-
make -j$(nproc)
76+
make -j4
7777
test $? -eq 0 || { echo "Can't compile libsodium"; exit 1; }
7878
cd ../../build
7979
else
@@ -87,7 +87,7 @@ if [ ! -d "../3pp/openssl_3" ]; then
8787
opensslPath=`pwd`
8888
git checkout openssl-3.1.4
8989
./config
90-
make build_libs -j$(nproc)
90+
make build_libs -j4
9191
test $? -eq 0 || { echo "Can't compile openssl_3"; exit 1; }
9292
cd ../../build
9393
else
@@ -100,7 +100,7 @@ if [ ! -d "../3pp/zlib" ]; then
100100
cd ../3pp/zlib
101101
zlibPath=`pwd`
102102
./configure --static
103-
make -j$(nproc)
103+
make -j4
104104
test $? -eq 0 || { echo "Can't compile zlib"; exit 1; }
105105
cd ../../build
106106
else
@@ -116,7 +116,7 @@ if [ ! -d "../3pp/libmicrohttpd" ]; then
116116
cd libmicrohttpd-1.0.1
117117
libmicrohttpdPath=`pwd`
118118
./configure --enable-static --disable-tests --disable-benchmark --disable-shared --disable-https --with-pic
119-
make -j$(nproc)
119+
make -j4
120120
test $? -eq 0 || { echo "Can't compile libmicrohttpd"; exit 1; }
121121
cd ../../../build
122122
else

assembly/native/build-macos-shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if [ ! -d "lz4" ]; then
5353
cd lz4
5454
lz4Path=`pwd`
5555
git checkout v1.9.4
56-
make -j$(nproc)
56+
make -j4
5757
test $? -eq 0 || { echo "Can't compile lz4"; exit 1; }
5858
cd ..
5959
else

0 commit comments

Comments
 (0)