Skip to content

Commit

Permalink
Change number of threads for circleci to 4 when building
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Aug 29, 2020
1 parent 9cbd639 commit 42ffdea
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- run:
name: Check g++ version
command: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --config gcc
gcc --version
g++ --version
Expand All @@ -47,7 +47,12 @@ jobs:
command: 'cmake --version; uname -a'
- run:
name: Compile
command: './clean-build.sh release'
command: |
mkdir -p build && cd build
mkdir -p release && cd release
rm -rf ./*
cmake ../../ -GNinja
cmake --build . -- -j4
- run:
name: Execute test suite
command: 'cd build/release ; ctest -j12'
command: 'cd build/release ; ctest -j6'

0 comments on commit 42ffdea

Please sign in to comment.