Repository navigation
automate building windows boost/soci prebuilts via github actions - #18123
Merged
Merged
Conversation
Adds a workflow_dispatch workflow that builds the Boost and SOCI prebuilts for a selectable MSVC toolset (e.g. msvc145 for VS 2026) and uploads them as artifacts, optionally pushing to the rstudio-buildtools S3 bucket. Parameterizes the install scripts so the toolset can be chosen from the environment, and propagates build failures from the .cmd wrappers. Addresses #17986
Downloads the archives from a workflow run via gh and uploads them to rstudio-buildtools with developer SSO credentials, until the OIDC role for direct upload exists (#18124).
RStudio E2E - all platforms2 test(s) failed
View / download the full reportDownload playwright-report.zip -- extract and open
All platforms - commit |
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.
Intent
Addresses #17986.
Boost (and SOCI) prebuilts for Windows are currently built manually on a developer's machine via
install-boost.cmd/install-soci.cmdand hand-uploaded to therstudio-buildtoolsS3 bucket. #17986 needs newmsvc145prebuilts published for the VS 2026 toolset so the CI fallback-to-msvc143stopgaps from #17850 can eventually be dropped. This PR automates that build-and-publish step.What changed
workflow_dispatchworkflow (.github/workflows/os-build-dependencies-windows.yml):145), CMake generator (defaultVisual Studio 18 2026), runner image (windows-2025= VS 2026,windows-2022= VS 2022), and anuploadtoggle.install-boost.cmd, then builds SOCI against those prebuilts viainstall-soci.cmd, and packages both as zips.uploadis enabled, pushes them tos3://rstudio-buildtoolsunder the same keysinstall-dependencies.cmddownloads from (Boost/boost-<ver>-win-msvc<toolset>.zip,soci-msvc<toolset>-<ver>.zip).tools.R's hardcoded VS 2022 path check passes on runner images with VS Enterprise / VS 2026.install-boost.cmd/install-dependencies.cmd:BOOST_VERSION/MSVC_TOOLSET_VERSIONnow honor values preset in the environment (defaults unchanged:1.90.0/143), so CI can request a different toolset without editing the scripts. Jenkins and local dev flows are unaffected.install-boost.R: the b2 toolset default is now derived fromMSVC_TOOLSET_VERSION(143=>msvc-14.3,145=>msvc-14.5) instead of being hardcoded tomsvc-14.3;BOOST_TOOLSETstill overrides.install-boost.cmd/install-soci.cmd: propagate failures viaexit /b 1instead of always exiting 0 (previously a failed build could be silently packaged/ignored, which would let a broken automated run "succeed").S3 upload credentials
The S3 upload step authenticates via GitHub OIDC and expects an
AWS_BUILDTOOLS_UPLOAD_ROLE_ARNrepository secret pointing at a role with write access torstudio-buildtools. No such secret exists yet -- that's tracked in #18124. Until it's configured, run the workflow withupload: falseand push the artifacts with the newdependencies/tools/upload-windows-dependencies.sh, which downloads a run's artifacts viagh run downloadand uploads them with developer SSO credentials (same flow as the otherupload-*.shscripts).QA Notes
This can only be exercised end-to-end by dispatching the workflow after merge (workflow_dispatch requires the workflow to exist on the default branch). Suggested first run: defaults (
msvc145onwindows-2025),upload: false, then inspect the artifacts. Note the first run also validates that Boost 1.90's bundled b2 accepts themsvc-14.5toolset /vc145bootstrap argument on VS 2026 -- if b2 predates VS 2026 support, theboost_toolsetderivation may need adjusting.Not adding a NEWS.md entry per the developer-only/build-tooling exception.
Checklist
NEWS.md