Skip to content
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

Run TSan and ASan on every C++ version #57

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

wusatosi
Copy link
Member

Since we will be selectively running tests and examples based on C++ version, we should run TSan and ASan on every C++ version variants in CI.

This PR updates the matrix to run three flavors of CMake configuration per compiler per C++ version:

  1. Default (No extra argument)
  2. TSan (with Thread sanitizer enabled)
  3. ASan (with Address and undefined sanitizer enabled)

This PR also specifies CMAKE_CXX_STANDARD for every run to avoid cmake falling back to older C++ versions.

No test case will be removed from this change, total matrix size from build and test increase from 15 to 23.

Comment on lines +19 to +26
name: "Preset Test: ${{ matrix.preset }}"
steps:
- uses: actions/checkout@v4
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
- name: Setup build environment
uses: lukka/get-cmake@latest
with:
cmake-version: '3.25.x'
- uses: seanmiddleditch/gha-setup-ninja@v5
cmakeVersion: "~3.25.0"
ninjaVersion: "^1.11.1"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tidying stuff up here. Giving preset test a better name and use the same setup-cmake action as the one below for consistency.

@wusatosi wusatosi mentioned this pull request Oct 22, 2024
@camio camio merged commit 9f95b89 into bemanproject:main Oct 30, 2024
30 checks passed
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.

2 participants