@ -10,9 +10,26 @@ aliases:
only_for_branches : master
only_for_branches : master
commands:
commands:
install-pyenv-on-macos:
steps:
- run:
name : Install pyenv on macos
command : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install pyenv
increase-max-open-files-on-macos:
steps:
- run:
name : Increase max open files
command : |
sudo sysctl -w kern.maxfiles=1048576
sudo sysctl -w kern.maxfilesperproc=1048576
sudo launchctl limit maxfiles 1048576
pre-steps:
pre-steps:
steps:
steps:
- checkout
- checkout
- run : pyenv install --skip-existing 3.5.9
- run : pyenv global 3.5.9
- run : pyenv global 3.5.9
- run:
- run:
name : Setup Environment Variables
name : Setup Environment Variables
@ -47,6 +64,13 @@ commands:
command : |
command : |
sudo apt-get update -y && sudo apt-get install -y libgflags-dev
sudo apt-get update -y && sudo apt-get install -y libgflags-dev
install-gflags-on-macos:
steps:
- run:
name : Install gflags on macos
command : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install gflags
install-gtest-parallel:
install-gtest-parallel:
steps:
steps:
- run:
- run:
@ -63,6 +87,17 @@ executors:
shell : bash.exe
shell : bash.exe
jobs:
jobs:
build-macos:
macos:
xcode : 11.3 .0
steps:
- increase-max-open-files-on-macos
- install-pyenv-on-macos
- pre-steps
- install-gflags-on-macos
- run : ulimit -S -n 1048576 && OPT=-DCIRCLECI make V=1 J=32 -j32 check | .circleci/cat_ignore_eagain
- post-steps
build-linux:
build-linux:
machine:
machine:
image : ubuntu-1604:202007-01
image : ubuntu-1604:202007-01
@ -419,3 +454,6 @@ workflows:
build-linux-gcc-4-8:
build-linux-gcc-4-8:
jobs:
jobs:
- build-linux-gcc-4-8
- build-linux-gcc-4-8
build-macos:
jobs:
- build-macos