Repository navigation
publish-cvcpkg: build libcvc-cuda's bundle with its recipe's own script - #1153
Merged
Merged
Conversation
The publish workflow configured libcvc with its own inline cmake line instead of running cvcpkg/recipes/libcvc/build.sh (build.ps1 on Windows), and the two drifted apart twice, both times into a published bundle: +cvc.1 without CVC_USING_XMLRPC (VolumeRover 2.x broke), and every libcvc through 3.7.5+cvc.2 without the gRPC and WebSocket transports. The build job now runs the recipe's script, the one cvcpkg's builders and ci-recipe.yml run, so the flags live in one place. What the inline configure set that the scripts lacked moved into them: - CVC_ENABLE_MESHER and CVC_ENABLE_SDF, ON (their defaults), written down with the rest of the SDK's feature set; - on macOS, CMAKE_IGNORE_PREFIX_PATH for both Homebrew prefixes. DISABLE_CGAL and CVC_BUILD_VOLROVER3 were dropped: the first is ignored and the second no longer exists. The workflow installed only the libcvc component; the scripts run a full install, and `cvcpkg pack --from-prefix` takes everything staged. With gRPC on, arisrv (default ON) would then put bin/arisrv in the SDK bundle, the file the arisrv package installs, so the scripts now set CVC_BUILD_ARISRV=OFF beside the CLI and ari. build.sh also asks sysctl for the job count on macOS, which has no nproc, instead of falling back to 4. The checks that the .ari loader, both terminal backends and both conference transports are configured move into the build step, after the script: a stub still fails build-libcvc, so neither the pack nor the family steps that build ari, arisrv and the rest against stage/ run. The pack step now prints the bundle's file list, to compare a run's bundle with what a tag published. The libcvc-cuda jobs keep their inline configure for now; their comments now point at the scripts.
libcvc-cuda's build.sh and build.ps1 now run libcvc's scripts with CVC_ENABLE_CUDA=ON instead of keeping copies of them. The copies had drifted: gRPC off, no WebSocket or XMLRPC, and arisrv not kept out of the install. After the build they fail when CUDA did not enable (no nvcc: libcvc's CMakeLists quietly builds CPU-only) or compiled for a single GPU architecture. Those were two workflow steps. The publish workflow's CUDA jobs run those scripts in place of their inline configure, check and build steps, as the CPU job runs libcvc's since the previous change. Like the CPU job, they also check the configure's feature lines and list the packed bundle's files in the log. The Windows CUDA job moves from the Visual Studio generator to Ninja, which is what build.ps1 uses. So it takes ninja from the catalog with cmake. A VS 2022 developer environment (ilammy/msvc-dev-cmd, as ci-recipe.yml uses) keeps env-windows.ps1 from importing a newer Visual Studio. CVC_JOBS=4 replaces CVC_MSVC_MP=4 as its memory cap. -T cuda=$CUDA_PATH is gone: it was needed only because MSBuild compiles .cu files through CUDA's VS integration.
…inja first msvc-dev-cmd exports a PATH that also carries Visual Studio's own CMake and Ninja. The build step now prepends tools\bin itself and logs which cmake and ninja it resolves, instead of relying on how Actions orders GITHUB_PATH against an exported PATH. The dry run (43150296417) showed why the msvc-dev-cmd step is needed: its vswhere lookup found nothing on the CUDA box, and it took the 2022 Build Tools from their standard path. env-windows.ps1 looks only through vswhere. The comment now says so.
transfix
marked this pull request as ready for review
November 12, 2026 06:26
transfix
enabled auto-merge (squash)
November 12, 2026 20:21
transfix
added a commit
that referenced
this pull request
Nov 13, 2026
This was referenced Nov 13, 2026
transfix
added a commit
that referenced
this pull request
Nov 13, 2026
package-linux / libcvc-release-grpc failed only in tools/singleton_scan, on cvc::ocean::sea_surface::source's thread_local. The run tested a merge with master b745ea6, from before #1181 (29ff406) took that thread_local out, and a rerun would test the same merge. Master since then: #1156, #1153, #1166, #1181, #1165. No conflicts.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The libcvc-cuda half of #1136. The publish workflow's two CUDA jobs now build libcvc-cuda with its recipe's own script, as the CPU job builds libcvc in #1136. This branch is cut from #1136's branch and carries its commit, so squash-merging this PR lands #1136's change as well. It merged first, on Joe's call: #1136's own head was blocked by master's writable-data scan failure (#1193).
What changes
cvcpkg/recipes/libcvc-cuda/build.shandbuild.ps1now run libcvc's scripts withCVC_ENABLE_CUDA=ONinstead of keeping copies of them. That was the stated design (libcvc's scripts say libcvc-cuda reuses them), but the recipe's matrix ran its own copies. Those had drifted:CVC_ENABLE_GRPC=OFFCVC_BUILD_ARISRV=OFFSo
cvcpkg build libcvc-cudabuilt a different SDK from the published one. After the build, the scripts also fail when:Both checks used to be workflow steps between configure and build. They now run after the build, because the script configures, builds and installs in one go. They also cover a local
cvcpkg build libcvc-cuda.Linux CUDA job: one step runs the script in place of the inline configure, the CUDA check and the build. It is still inside the
nvidia/cuda:12.9.1-devel-ubuntu22.04container, for the glibc floor. Like the CPU job, it then:Windows CUDA job: the same, plus what moving from the Visual Studio generator to Ninja (what
build.ps1uses) needs:ilammy/msvc-dev-cmd@v1withvsversion: 2022(as ci-recipe.yml uses it).env-windows.ps1imports the newest Visual Studio when cl isn't on PATH. VS2026's cl ICEs on libcvc, and CUDA 12's nvcc refuses a newer host compiler. The-G "Visual Studio 17 2022"pin did this before.CVC_JOBS=4replacesCVC_MSVC_MP=4as the memory cap on the 16 GB box it shares with the cvcpkg.org builder.-T cuda=$CUDA_PATHis gone. It existed only because MSBuild compiles.cufiles through CUDA's VS integration. With Ninja, CMake runs nvcc itself.The stage is now a full install, not
--component libcvc, as on the CPU job. libcvc's script turns off the CLI,ariandarisrv, so nothing extra is staged.Verification
Wrapper checks, stub-tested on both platforms (bash; Windows PowerShell 5.1, since pwsh 7 isn't installed on the test machine). A good cache passes. Each of these fails with a message:
CMAKE_CUDA_COMPILER-NOTFOUND)52)Tee-Objectkeeps the child's exit code.The workflow parses as YAML. Every changed
run:block passesbash -nor the PowerShell parser.Dry run 43150296417 (
dry_run=true,publish_cuda=true, at 259714b): both CUDA jobs passed.CVC_JOBS=4)The 13 files added are the same on both platforms: headers and Ariadne components that landed on master since v3.7.13 (relay_session.h, room_calls.h, det_math.h, param_cli/dsl/table.h, world_grid.h, shore.h, value_cbor.h, contour_tree_params.h, file_handler_registry.h, world_physics.ari, world_source.ari).
One file is missing, on Linux only:
share/licenses/libcvc-cuda/LICENSE. The branch predated ci: install cvcpkg 2.5.13, which packs licence texts #1134, so the Linux job'sfetch-cvcpkginstalled cvcpkg 2.5.12. That shadowed the 2.5.13 the job pip-installs, and 2.5.13 is the first version that packs licence texts. The Windows job runs the pip-installed 2.5.13, so its bundle has the licence. Master is merged in now (eefb810), so the Linux job installs 2.5.13 as well.After the dry run, 32110ef makes the Windows build step put the catalog's cmake and ninja ahead of the copies in msvc-dev-cmd's PATH, and log which ones it resolved. This is a two-line pwsh change; the dry run does not cover it, but it passes the PowerShell parser. In the dry run, msvc-dev-cmd's vswhere lookup found nothing on sandipaws, so it took the 2022 Build Tools from their standard path. env-windows.ps1 looks only through vswhere, so the step is needed there, not just a pin.
Notes
share/libcvc-deps/libcvc-cuda/recipe/. Thatbuild.shis now a wrapper that names../libcvc/build.sh, which the bundle does not carry. libcvc'sbuild.ps1already depends on../_commonthe same way, and nothing rebuilds from that copy.recipe.yamldependency list has drifted from libcvc's. It lacks curl, ftxui, tvision, yaml-cpp, json-schema-validator, nlohmann-json, libopus, ncurses, pocketfft, joltphysics, openmp, qhull, cdt, clipper2 and shewchuk-predicates. The CI build still finds them, because both CUDA jobs install libcvc's closure.