Skip to content

Commit 2e746c5

Browse files
author
Mykola Solianko
committed
ci: use build script instead cmd
Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
1 parent f026d7e commit 2e746c5

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

.github/workflows/build_test.yaml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,15 @@ jobs:
5656

5757
- name: Build using SonarQube Build Wrapper
5858
run: |
59-
mkdir build
60-
61-
conan profile detect --force
62-
63-
conan install ./conan/ --output-folder build --settings=build_type=Debug --build=missing
64-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DWITH_TEST=ON -DWITH_COVERAGE=ON -DWITH_VCHAN=OFF -G "Unix Makefiles" \
65-
-DWITH_MBEDTLS=OFF -DWITH_OPENSSL=ON -DCMAKE_TOOLCHAIN_FILE=./conan_toolchain.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
66-
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build ./build/ --config Debug --parallel
59+
./scripts/build.sh build
6760
6861
- name: Run Tests
6962
run: |
70-
cd build
71-
make coverage
63+
./scripts/build.sh coverage
7264
7365
- name: Static analysis
7466
run: |
75-
cppcheck --enable=all --inline-suppr -I src --std=c++17 --error-exitcode=1 \
76-
--suppressions-list=./suppressions.txt --project=build/compile_commands.json --file-filter='src/*'
67+
./scripts/build.sh lint
7768
7869
- name: Upload codecov report
7970
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)