File size: 428 Bytes
f5bb0c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Build the project

BASEDIR=$(dirname $0)
source $BASEDIR/defaults.sh

if [[ $WITH_CMAKE == true ]] ; then
  cd build
  if [[ "$CI_OS_NAME" == "linux" ]]; then make -j`nproc` ; fi
  if [[ "$CI_OS_NAME" == "osx" ]]; then make -j`sysctl -n hw.logicalcpu` ; fi
else
  if [[ "$CI_OS_NAME" == "linux" ]]; then make all -j`nproc` ; fi
  if [[ "$CI_OS_NAME" == "osx" ]]; then make all -j`sysctl -n hw.logicalcpu` ; fi
fi