Skip to content

Testing - Add a new compilation on Clang without PCH#540

Merged
dpasukhi merged 6 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:no_pch_test
May 17, 2025
Merged

Testing - Add a new compilation on Clang without PCH#540
dpasukhi merged 6 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:no_pch_test

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

Updated a main workflow to validate the header and more precise warnings.
No PCH helps to validate missed headers.

Updated a main workflow to validate the header and more precise warnings.
No PCH helps to validate missed headers.
@dpasukhi dpasukhi added this to the Release 8.0 milestone May 16, 2025
@dpasukhi dpasukhi self-assigned this May 16, 2025
@dpasukhi dpasukhi added 2. Enhancement New feature or request 1. Testing Updating of the DRAW/GTests or GH tests labels May 16, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new job to build on Clang without precompiled headers to help validate header inclusion and warn about missing headers.

  • Added the "prepare-and-build-linux-clang-no-pch" job in the workflow file.
  • Updated the build-occt action to accept a new input "build-use-pch" and use it in CMake configuration.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/build-and-test-multiplatform.yml Added a new job to build using Clang without precompiled headers
.github/actions/build-occt/action.yml Introduced the "build-use-pch" input and updated CMake commands to use it

Comment thread .github/actions/build-occt/action.yml
@dpasukhi dpasukhi requested a review from Copilot May 16, 2025 19:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new build configuration for Clang without using precompiled headers in order to validate header dependencies and enable more precise warning detection.

  • Introduces a new workflow job "Prepare and Build on Ubuntu with Clang (No PCH)" in the multiplatform CI.
  • Modifies the build action configuration to drive PCH usage and optimization profile via inputs.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/build-and-test-multiplatform.yml Adds a new CI job for building with Clang without PCH
.github/actions/build-occt/action.yml Updates action inputs and adjusts cmake commands to dynamically use PCH and optimization profile
Files not reviewed (1)
  • adm/cmake/occt_defs_flags.cmake: Language not supported
Comments suppressed due to low confidence (1)

.github/actions/build-occt/action.yml:111

  • Ensure that splitting the additional-cmake-flags onto a separate line preserves the intended concatenation of flags. Verify that the command-line construction behaves as before after this change.
-D INSTALL_GTEST=ON `

Comment thread .github/workflows/build-and-test-multiplatform.yml
@dpasukhi dpasukhi requested a review from mzernova May 17, 2025 09:24
@github-project-automation github-project-automation bot moved this from Todo to Integration in Maintenance May 17, 2025
@dpasukhi dpasukhi merged commit e668a0d into Open-Cascade-SAS:IR May 17, 2025
66 of 68 checks passed
@dpasukhi dpasukhi deleted the no_pch_test branch May 17, 2025 20:08
@github-project-automation github-project-automation bot moved this from Integration to Done in Maintenance May 17, 2025
dpasukhi added a commit to dpasukhi/OCCT that referenced this pull request May 19, 2025
dpasukhi added a commit to dpasukhi/OCCT that referenced this pull request May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Testing Updating of the DRAW/GTests or GH tests 2. Enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants