Fix unnecessary temporary object on emplace_back #125
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test, Build and Test - MAIN | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Testing_Code_Quality: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
#instalando dependencias das libraries | |
- name: Installing Dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install build-essential | |
sudo apt install cmake -y | |
sudo apt install clang clang-tidy clang-format ninja-build -y | |
sudo add-apt-repository ppa:pistache+team/unstable && sudo apt update && sudo apt install libpistache-dev | |
sudo apt-get update && sudo apt-get install libcurl4 libcurl4-openssl-dev libpoco-dev libmysqlcppconn-dev -y | |
sudo apt install libgtest-dev googletest -y | |
sudo apt install redis-server redis-tools -y | |
sudo sed -i 's/^supervised no/supervised systemd/g' /etc/redis/redis.conf | |
sudo systemctl restart redis-server | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.16.x' | |
- name: Build project | |
run: | | |
export CC=$(which clang) | |
export CXX=$(which clang++) | |
export CURRENT_SOURCE_DIR=$(pwd) | |
mkdir build && cd build | |
export CURRENT_BUILD_DIR=$(pwd) | |
cmake .. -G Ninja | |
cmake --build . --config Debug --target all -j $(nproc) -- | |
- name: Test project | |
run: | | |
export CC=$(which clang) | |
export CXX=$(which clang++) | |
cd build | |
ctest -j 20 -C Debug -T test --output-on-failure |