It would be nice to have the debug build as part of PR tests to avoid breaking debug builds when changing CMake files. A breakage was fixed in #2805 after protobuf build was changed in #2792 and it was not detected by PR author, reviewers nor PR tests in CI automation.
Originally posted by @tuminoid in #2805 (review)