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

[ROCm/rocprofiler-sdk commit: 5bb087f072]
Este commit está contenido en:
Ammar ELWazir
2024-04-04 06:49:17 -05:00
cometido por GitHub
padre f090e6d784
commit b5d4745e4e
Se han modificado 4 ficheros con 121 adiciones y 3 borrados
+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 --