Skip to content

Fix (?) export clang 15 #129

Fix (?) export clang 15

Fix (?) export clang 15 #129

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-15 clang-tidy-15 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-15)
export CXX=$(which clang++-15)
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-15)
export CXX=$(which clang++-15)
cd build
ctest -j 20 -C Debug -T test --output-on-failure