diff options
| author | kinichiro <kinichiro.inoguchi@gmail.com> | 2022-04-29 18:55:44 +0900 |
|---|---|---|
| committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2022-04-29 18:55:44 +0900 |
| commit | 8a57de6ed06b9f0e706211b33af28b61590ab0c8 (patch) | |
| tree | 2a363f9e0a3caa972226c47980e6ac8758792971 /scripts | |
| parent | 500d16b32ce25231e7c721363cfb5fe121e0fd81 (diff) | |
| download | portable-8a57de6ed06b9f0e706211b33af28b61590ab0c8.tar.gz portable-8a57de6ed06b9f0e706211b33af28b61590ab0c8.tar.bz2 portable-8a57de6ed06b9f0e706211b33af28b61590ab0c8.zip | |
Set max number of processes for CI
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/test | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/test b/scripts/test index 80fa988..f2f0cb8 100755 --- a/scripts/test +++ b/scripts/test | |||
| @@ -20,24 +20,24 @@ if [ "x$ARCH" = "xnative" ]; then | |||
| 20 | # test cmake and ninja | 20 | # test cmake and ninja |
| 21 | if [ `uname` = "Darwin" ]; then | 21 | if [ `uname` = "Darwin" ]; then |
| 22 | cmake .. | 22 | cmake .. |
| 23 | make | 23 | make -j 4 |
| 24 | make test | 24 | make test |
| 25 | 25 | ||
| 26 | cd ../build-shared | 26 | cd ../build-shared |
| 27 | cmake -DBUILD_SHARED_LIBS=ON .. | 27 | cmake -DBUILD_SHARED_LIBS=ON .. |
| 28 | make | 28 | make -j 4 |
| 29 | make test | 29 | make test |
| 30 | else | 30 | else |
| 31 | sudo apt-get update | 31 | sudo apt-get update |
| 32 | sudo apt-get install -y cmake ninja-build | 32 | sudo apt-get install -y cmake ninja-build |
| 33 | 33 | ||
| 34 | cmake -GNinja .. | 34 | cmake -GNinja .. |
| 35 | ninja | 35 | ninja -j 4 |
| 36 | ninja test | 36 | ninja test |
| 37 | 37 | ||
| 38 | cd ../build-shared | 38 | cd ../build-shared |
| 39 | cmake -GNinja -DBUILD_SHARED_LIBS=ON .. | 39 | cmake -GNinja -DBUILD_SHARED_LIBS=ON .. |
| 40 | ninja | 40 | ninja -j 4 |
| 41 | ninja test | 41 | ninja test |
| 42 | fi | 42 | fi |
| 43 | 43 | ||
| @@ -58,21 +58,21 @@ elif [ "x$ARCH" = "xmingw32" -o "x$ARCH" = "xmingw64" ]; then | |||
| 58 | fi | 58 | fi |
| 59 | 59 | ||
| 60 | ./configure --host=$CPU-w64-mingw32 | 60 | ./configure --host=$CPU-w64-mingw32 |
| 61 | make -j | 61 | make -j 4 |
| 62 | 62 | ||
| 63 | ( | 63 | ( |
| 64 | rm -fr build-static | 64 | rm -fr build-static |
| 65 | mkdir build-static | 65 | mkdir build-static |
| 66 | cd build-static | 66 | cd build-static |
| 67 | cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake .. | 67 | cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake .. |
| 68 | ninja | 68 | ninja -j 4 |
| 69 | ) | 69 | ) |
| 70 | ( | 70 | ( |
| 71 | rm -fr build-shared | 71 | rm -fr build-shared |
| 72 | mkdir build-shared | 72 | mkdir build-shared |
| 73 | cd build-shared | 73 | cd build-shared |
| 74 | cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake -DBUILD_SHARED_LIBS=ON .. | 74 | cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../scripts/$CPU-w64-mingw32.cmake -DBUILD_SHARED_LIBS=ON .. |
| 75 | ninja | 75 | ninja -j 4 |
| 76 | ) | 76 | ) |
| 77 | 77 | ||
| 78 | elif [ "x$ARCH" = "xarm32" -o "x$ARCH" = "xarm64" ]; then | 78 | elif [ "x$ARCH" = "xarm32" -o "x$ARCH" = "xarm64" ]; then |
