Adding useful scripts for formating and building (#737)

* Addin useful scripts for formating and building

* Update build.sh

* Update build.sh

* Update continuous_integration.yml
Este commit está contenido en:
Ammar ELWazir authored and GitHub committed 2024-04-04 06:49:17 -05:00
1 padre e0caae9ebc
commit 5bb087f072
4 files changed
+121 -3

No files matched your search

+19
Ver fichero
@@ -0,0 +1,19 @@
#!/bin/bash
sudo apt-get update
sudo apt-get install -y cmake clang-tidy g++-11 g++-12 python3-pip
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 --slave /usr/bin/g++ g++ /usr/bin/g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 --slave /usr/bin/g++ g++ /usr/bin/g++-12
#python3 -m pip install -r requirements.txt
python3 -m pip install pytest pandas pyyaml
python3 -m pip install 'cmake>=3.22.0'
ROCPROFILER_SDK_PATH="$(pwd)/$(dirname ${BASH_SOURCE[0]})/../.."
cd ${ROCPROFILER_SDK_PATH}
echo -e "Redirecting to location: $ROCPROFILER_SDK_PATH"
cmake -B build -DROCPROFILER_BUILD_CI=ON -DROCPROFILER_BUILD_TESTS=ON -DROCPROFILER_BUILD_SAMPLES=ON -DROCPROFILER_ENABLE_CLANG_TIDY=ON $*
cmake --build build --target all --parallel $(nproc)
#cd --