Set max number of processes for CI
This commit is contained in:
parent
500d16b32c
commit
8a57de6ed0
14
scripts/test
14
scripts/test
@ -20,24 +20,24 @@ if [ "x$ARCH" = "xnative" ]; then
|
|||||||
# test cmake and ninja
|
# test cmake and ninja
|
||||||
if [ `uname` = "Darwin" ]; then
|
if [ `uname` = "Darwin" ]; then
|
||||||
cmake ..
|
cmake ..
|
||||||
make
|
make -j 4
|
||||||
make test
|
make test
|
||||||
|
|
||||||
cd ../build-shared
|
cd ../build-shared
|
||||||
cmake -DBUILD_SHARED_LIBS=ON ..
|
cmake -DBUILD_SHARED_LIBS=ON ..
|
||||||
make
|
make -j 4
|
||||||
make test
|
make test
|
||||||
else
|
else
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y cmake ninja-build
|
sudo apt-get install -y cmake ninja-build
|
||||||
|
|
||||||
cmake -GNinja ..
|
cmake -GNinja ..
|
||||||
ninja
|
ninja -j 4
|
||||||
ninja test
|
ninja test
|
||||||
|
|
||||||
cd ../build-shared
|
cd ../build-shared
|
||||||
cmake -GNinja -DBUILD_SHARED_LIBS=ON ..
|
cmake -GNinja -DBUILD_SHARED_LIBS=ON ..
|
||||||
ninja
|
ninja -j 4
|
||||||
ninja test
|
ninja test
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -58,21 +58,21 @@ elif [ "x$ARCH" = "xmingw32" -o "x$ARCH" = "xmingw64" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
./configure --host=$CPU-w64-mingw32
|
./configure --host=$CPU-w64-mingw32
|
||||||
make -j
|
make -j 4
|
||||||
|
|
||||||
(
|
(
|
||||||
rm -fr build-static
|
rm -fr build-static
|
||||||
mkdir build-static
|
mkdir build-static
|
||||||
cd build-static
|
cd build-static
|
||||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake ..
|
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake ..
|
||||||
ninja
|
ninja -j 4
|
||||||
)
|
)
|
||||||
(
|
(
|
||||||
rm -fr build-shared
|
rm -fr build-shared
|
||||||
mkdir build-shared
|
mkdir build-shared
|
||||||
cd build-shared
|
cd build-shared
|
||||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake -DBUILD_SHARED_LIBS=ON ..
|
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake -DBUILD_SHARED_LIBS=ON ..
|
||||||
ninja
|
ninja -j 4
|
||||||
)
|
)
|
||||||
|
|
||||||
elif [ "x$ARCH" = "xarm32" -o "x$ARCH" = "xarm64" ]; then
|
elif [ "x$ARCH" = "xarm32" -o "x$ARCH" = "xarm64" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user