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

Test options in CMake CI jobs #313

Merged
merged 5 commits into from
Nov 1, 2024
Merged

Test options in CMake CI jobs #313

merged 5 commits into from
Nov 1, 2024

Conversation

chiphogg
Copy link
Contributor

Currently, we only run one CMake configuration in CI. It's the default
one, where we permit the GTest dependency, and we build and run tests.
Now we are adding two more configurations, one for each of the new
options:

  • Set AU_ENABLE_TESTING to FALSE
  • Set AU_EXCLUDE_GTEST_DEPENDENCY to TRUE (implies the former)

In both these instances, the test target won't exist, so we exclude it
from running.

We do however retain the CMAKE_VERIFY_INTERFACE_HEADER_SETS option,
because that gives us useful testing for our interface targets.

Fixes #304.

Currently, we only run one CMake configuration in CI.  It's the default
one, where we permit the GTest dependency, and we build and run tests.
Now we are adding two more configurations, one for each of the new
options:

- Set `AU_ENABLE_TESTING` to `FALSE`
- Set `AU_EXCLUDE_GTEST_DEPENDENCY` to `TRUE` (implies the former)

In both these instances, the `test` target won't exist, so we exclude it
from running.

We do however retain the `CMAKE_VERIFY_INTERFACE_HEADER_SETS` option,
because that gives us useful testing for our interface targets.

Fixes #304.
@chiphogg chiphogg added the release notes: ⚙️ repo PR affecting the way the repository works label Oct 28, 2024
@chiphogg chiphogg requested a review from timhirsh October 28, 2024 15:24
@chiphogg chiphogg marked this pull request as ready for review October 28, 2024 15:35
@chiphogg chiphogg requested a review from a team as a code owner October 28, 2024 15:35
We will revert before landing.  But we want to show that the new jobs
would catch things like this.
This reverts commit 01321e3.

It served its purpose: we know the CI jobs work!
@chiphogg
Copy link
Contributor Author

@timhirsh, see this failed build. Note that evidently, when one matrix build fails, it cancels the others. This seems OK, since they all need to be passing all the time.

Copy link
Member

@timhirsh timhirsh left a comment

Choose a reason for hiding this comment

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

👍

@chiphogg chiphogg merged commit a0b82f7 into main Nov 1, 2024
13 checks passed
@chiphogg chiphogg deleted the chiphogg/cmake-ci#304 branch November 1, 2024 22:53
@chiphogg
Copy link
Contributor Author

chiphogg commented Nov 1, 2024

Now instead of getting 11 notifications from the GitHub app, every time I make, update, or land a PR... I can get 13! 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: ⚙️ repo PR affecting the way the repository works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CMake CI tests for different options
2 participants