steps:
- uses: actions/checkout@v2
+ - name: Checkout submodules
+ run: git submodule update --init --recursive
- name: install-boost
- run: sudo apt-get install -y libboost-all-dev
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libboost-all-dev
- name: fetch-gtest
run: sudo apt-get install -y libgtest-dev
- name: install-gtest
run: cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib || sudo cp *.a /usr/lib
+ - name: install-gperftools
+ run: sudo apt-get install -y libgoogle-perftools-dev
+
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
- run: ctest -C $BUILD_TYPE
+ run: ctest --rerun-failed --output-on-failure -C $BUILD_TYPE