Skip to content

Feature/add workflow presets #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ClausKlein
Copy link
Contributor

clang-format -i *.json

use CMAKE_UNITY_BUILD as default

prevent clang-tidy as precompile step

add ENABLE_DOXYGEN option

@ClausKlein ClausKlein marked this pull request as draft September 5, 2023 16:31
@ClausKlein
Copy link
Contributor Author

cmake --workflow --preset

Usage examples on unix-like OS:

bash-5.2$ cmake --workflow --preset debug --fresh 2> /dev/null | grep -w step
Executing workflow step 1 of 3: configure preset "debug"
Executing workflow step 2 of 3: build preset "debug"
Executing workflow step 3 of 3: test preset "debug"

bash-5.2$ cmake --workflow --preset release --fresh 2> /dev/null | grep -w step
Executing workflow step 1 of 6: configure preset "release"
Executing workflow step 2 of 6: build preset "release"
Executing workflow step 3 of 6: test preset "release"
Executing workflow step 4 of 6: build preset "install"
Executing workflow step 5 of 6: build preset "doxygen-docs"
Executing workflow step 6 of 6: package preset "release"

bash-5.2$ cmake --workflow --preset ?
CMake Error: No such workflow preset in /Users/clausklein/Workspace/cpp/cmake_template: "?"
Available workflow presets:

  "debug"
  "release"
  "clang-debug"
  "clang-release"
bash-5.2$ 

With CMAKE_UNITY_BUILD there are build error with ftxui!

Quickfix: don't build ftxui_sample if CMAKE_UNITY_BUILD is set.
clang-format -i *.json

use CMAKE_UNITY_BUILD as default

prevent clang-tidy as precompile step

add ENABLE_DOXYGEN option
@ClausKlein ClausKlein force-pushed the feature/add-workflow-presets branch from 8024301 to e11f7f8 Compare July 13, 2025 08:33
@ClausKlein ClausKlein marked this pull request as ready for review July 13, 2025 08:34
Copy link

codecov bot commented Jul 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 20.50%. Comparing base (1015c6b) to head (e11f7f8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #68   +/-   ##
=======================================
  Coverage   20.50%   20.50%           
=======================================
  Files           5        5           
  Lines         239      239           
  Branches      112      112           
=======================================
  Hits           49       49           
+ Misses        179      177    -2     
- Partials       11       13    +2     
Flag Coverage Δ
Linux 17.64% <ø> (ø)
Windows 21.02% <ø> (ø)
macOS 18.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant