This repository was archived by the owner on Dec 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Cxx23 side quest #68
Merged
Merged
Cxx23 side quest #68
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ba397d6
Sprint 4.5: Make OpenCASCADE optional (default OFF), update docs
fb836c3
Sprint 4.5: Add CMakePresets.json for cross-platform builds + macOS O…
c68e790
Add CONTROL QA overview reference to canonical strategy
d625f80
Sprint 4.5 final state: commit all changes
8bfc4ab
Gate bedrock_smoke_step test behind OCCT option
5f77818
SQ1 Chunk 1: Add C++23 probe and simple job
683f125
SQ1 Chunk 1: Update feasibility doc with macOS validation results
c20ae1c
SQ1 Chunk 3: Upgrade CI to C++23-capable runners (ubuntu-24.04, macos…
a878da5
SQ1 Chunk 3: Fix macOS Qt install - remove invalid modules for aqt
d535da9
CI: Fix Linux Qt 6.10.1 module list
9112b7b
CI: Derive Qt CMAKE_PREFIX_PATH from aqt layout
50b81df
CI: Robust Qt root detection with aqt
a707d1f
CI: Use venv for macOS Qt aqtinstall
922f02b
CI: simplify to Linux-only C++23 core build-and-test
a40ec22
SQ1 Closeout: Update feasibility doc with final CI results (All Green)
56a6e91
docs: record CI toolchain versions, mark C++23 Side Quest as complete
95fbb91
Resolve ci.yml merge conflict, restore Ubuntu build job name
f072813
Cleanup: fix simple_job ODR, gitignore, CI backup, and ci.yml
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,256 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| tags: [ "v*" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| jobs: | ||
| build: # keep this id so the check stays "CI / build" | ||
| name: Ubuntu build (with OpenCascade) | ||
| runs-on: ubuntu-24.04 | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| cmake \ | ||
| ninja-build \ | ||
| g++ \ | ||
| libtbb-dev | ||
|
|
||
| - name: Print tool versions | ||
| run: | | ||
| echo "=== Tool Versions ===" | ||
| g++ --version | ||
| cmake --version | ||
| ninja --version | ||
| echo "====================" | ||
|
|
||
| - name: Configure (CMake - engine-only build) | ||
| run: | | ||
| cmake -S . -B build -G Ninja \ | ||
| -DCMAKE_BUILD_TYPE=Release \ | ||
| -DBEDROCK_WITH_OCCT=OFF | ||
|
|
||
| - name: Build libraries only | ||
| run: | | ||
| cmake --build build --config Release --target bedrock_engine -j | ||
|
|
||
| - name: Upload CMake logs (on failure) | ||
| if: failure() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: cmake-logs | ||
| path: | | ||
| build/CMakeFiles/CMakeOutput.log | ||
| build/CMakeFiles/CMakeError.log | ||
| retention-days: 7 | ||
|
|
||
| - name: Post-job cleanup | ||
| if: always() | ||
| run: | | ||
| rm -rf "$HOME/_work" || true | ||
|
|
||
| tests: | ||
| name: Tests (Unit + Integration) | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-24.04, macos-14] | ||
| runs-on: ${{ matrix.os }} | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| env: | ||
| QT_VERSION: 6.10.1 | ||
| QTFRAMEWORK_BYPASS_LICENSE_CHECK: "1" | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Install dependencies (Linux) | ||
| if: matrix.os == 'ubuntu-24.04' | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| cmake \ | ||
| ninja-build \ | ||
| g++ \ | ||
| libtbb-dev \ | ||
| libgtest-dev \ | ||
| libomp-dev \ | ||
| lcov | ||
|
|
||
| - name: Install dependencies (macOS) | ||
| if: matrix.os == 'macos-14' | ||
| run: | | ||
| brew install cmake ninja libomp | ||
|
|
||
| - name: Print tool versions | ||
| run: | | ||
| echo "=== Tool Versions ===" | ||
| if [[ "${{ matrix.os }}" == "ubuntu-24.04" ]]; then | ||
| g++ --version | ||
| else | ||
| clang++ --version | ||
| fi | ||
| cmake --version | ||
| ninja --version | ||
| echo "====================" | ||
|
|
||
| - name: Install Qt 6.10.1 (macOS) | ||
| if: matrix.os == 'macos-14' | ||
| run: | | ||
| # Create and activate a local virtual environment | ||
| python3 -m venv .venv | ||
| source .venv/bin/activate | ||
|
|
||
| # Upgrade pip inside the venv and install aqtinstall | ||
| pip install --upgrade pip | ||
| pip install "aqtinstall==3.1.*" | ||
|
|
||
| # Use the venv's python to install Qt | ||
| python -m aqt install-qt mac desktop 6.10.1 \ | ||
| --outputdir "${GITHUB_WORKSPACE}/Qt" | ||
|
|
||
| - name: Install Qt 6.10.1 (Linux) | ||
| if: matrix.os == 'ubuntu-24.04' | ||
| run: | | ||
| python3 -m pip install --upgrade pip | ||
| python3 -m pip install "aqtinstall==3.1.*" | ||
| python3 -m aqt install-qt linux desktop 6.10.1 \ | ||
| --outputdir ${{ github.workspace }}/Qt | ||
|
|
||
| - name: Setup Qt environment | ||
| run: | | ||
| QT_BASE_DIR="${{ github.workspace }}/Qt" | ||
|
|
||
| echo "Qt base dir contents:" | ||
| ls -R "$QT_BASE_DIR" || true | ||
|
|
||
| if [[ "${{ matrix.os }}" == "ubuntu-24.04" ]]; then | ||
| # Typical aqt layout: Qt/6.10.1/gcc_64 | ||
| QT_ROOT=$(find "$QT_BASE_DIR" -maxdepth 4 -type d -name "gcc_64" | head -n 1) | ||
| else | ||
| # Typical aqt layout on macOS: Qt/6.10.1/clang_64 | ||
| QT_ROOT=$(find "$QT_BASE_DIR" -maxdepth 4 -type d -name "clang_64" | head -n 1) | ||
| fi | ||
|
|
||
| if [[ -z "$QT_ROOT" || ! -d "$QT_ROOT" ]]; then | ||
| echo "❌ Could not locate Qt root directory under $QT_BASE_DIR" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Using Qt root: $QT_ROOT" | ||
|
|
||
| # Set CMAKE_PREFIX_PATH so CMake can find Qt | ||
| echo "CMAKE_PREFIX_PATH=$QT_ROOT" >> $GITHUB_ENV | ||
| echo "CMAKE_PREFIX_PATH has been set to $QT_ROOT" | ||
|
|
||
| # Optionally set Qt6_DIR if helpful to CMake | ||
| if [[ -d "$QT_ROOT/lib/cmake/Qt6" ]]; then | ||
| echo "Qt6_DIR=$QT_ROOT/lib/cmake/Qt6" >> $GITHUB_ENV | ||
| echo "Qt6_DIR has been set to $QT_ROOT/lib/cmake/Qt6" | ||
| else | ||
| echo "Qt6_DIR not found at $QT_ROOT/lib/cmake/Qt6 (this may be fine if CMake finds Qt via CMAKE_PREFIX_PATH)" | ||
| fi | ||
|
|
||
| - name: Configure (CMake - with transport deps) | ||
| run: | | ||
| # Enable coverage on Linux only | ||
| if [[ "${{ matrix.os }}" == "ubuntu-24.04" ]]; then | ||
| COVERAGE_FLAGS="-fprofile-arcs -ftest-coverage --coverage" | ||
| BUILD_TYPE="RelWithDebInfo" | ||
| else | ||
| COVERAGE_FLAGS="" | ||
| BUILD_TYPE="Release" | ||
| fi | ||
| cmake -S . -B build -G Ninja \ | ||
| -DCMAKE_BUILD_TYPE="$BUILD_TYPE" \ | ||
| -DBEDROCK_WITH_OCCT=OFF \ | ||
| -DBEDROCK_WITH_TRANSPORT_DEPS=ON \ | ||
| -DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH" \ | ||
| -DCMAKE_CXX_FLAGS="$COVERAGE_FLAGS" \ | ||
| -DCMAKE_EXE_LINKER_FLAGS="$COVERAGE_FLAGS" \ | ||
| -DBUILD_TESTING=ON | ||
|
|
||
| - name: Build all tests | ||
| run: | | ||
| # Use appropriate build type based on OS | ||
| if [[ "${{ matrix.os }}" == "ubuntu-24.04" ]]; then | ||
| BUILD_CONFIG="RelWithDebInfo" | ||
| else | ||
| BUILD_CONFIG="Release" | ||
| fi | ||
| cmake --build build --config "$BUILD_CONFIG" -j | ||
|
|
||
| - name: Run all tests (ctest) | ||
| run: | | ||
| cd build | ||
| ctest --output-on-failure | ||
|
|
||
| - name: Generate coverage report (Linux only) | ||
| if: matrix.os == 'ubuntu-24.04' | ||
| run: | | ||
| cd build | ||
| # Capture coverage data | ||
| lcov --directory . --capture --output-file coverage.info | ||
|
|
||
| # Remove system headers, external libs, and test files | ||
| lcov --remove coverage.info \ | ||
| '/usr/*' \ | ||
| '*/tests/*' \ | ||
| '*/googletest/*' \ | ||
| '*/generated/*' \ | ||
| '*/build/*' \ | ||
| --output-file coverage-filtered.info | ||
|
|
||
| # Generate HTML report (focus on src/palantir/*) | ||
| genhtml coverage-filtered.info \ | ||
| --output-directory coverage-html \ | ||
| --prefix "$(pwd)/.." \ | ||
| --show-details \ | ||
| --legend \ | ||
| --demangle-cpp | ||
|
|
||
| # Print summary | ||
| echo "=== Coverage Summary ===" | ||
| lcov --summary coverage-filtered.info || true | ||
|
|
||
| - name: Upload coverage report (Linux only) | ||
| if: matrix.os == 'ubuntu-24.04' | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage-report-bedrock | ||
| path: | | ||
| build/coverage-html/** | ||
| build/coverage-filtered.info | ||
| retention-days: 30 | ||
|
|
||
| - name: Upload test logs (on failure) | ||
| if: failure() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: test-logs-${{ matrix.os }} | ||
| path: | | ||
| build/Testing/**/*.xml | ||
| build/Testing/**/*.log | ||
| retention-days: 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Unresolved git merge conflict markers in CI workflow
The CI workflow file contains unresolved git merge conflict markers (
<<<<<<< HEAD,=======,>>>>>>> origin/main) at two locations. These markers break YAML syntax and will cause GitHub Actions to fail when parsing the workflow file. The first conflict is betweenactions/checkout@v4andactions/checkout@v6, and the second conflict involves the Build step versus Upload/cleanup steps. These conflicts need to be resolved before merging.Additional Locations (1)
.github/workflows/ci.yml#L51-L67