Skip to content

Commit 822623b

Browse files
committed
refactor: modify CMake build commands in workflows to utilize presets for improved clarity
1 parent f8d9b74 commit 822623b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/build_binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: 'Build'
4343
id: 'build'
4444
run: |
45-
cmake --build --preset default
45+
cmake --build --preset default --target cpp_bindings_linux
4646
4747
. build/env.sh
4848
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_OUTPUT

.github/workflows/test_unit_cpp.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ jobs:
4545
CXX: g++
4646

4747
run: |
48-
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
48+
cmake --preset linux-gcc-release
4949
5050
- name: 'Build'
5151
id: 'build'
5252
run: |
53-
cmake --build build --config Release --target all
54-
#################################### ^ needs to be changed
53+
cmake --build --preset default --target cpp_bindings_linux_tests
5554
5655
- name: 'Install test dependencies'
5756
run: |

0 commit comments

Comments
 (0)