-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[BuildScript] Add products for Swift-DocC and Swift-DocC-Render #39723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BuildScript] Add products for Swift-DocC and Swift-DocC-Render #39723
Conversation
(rdar://79703353)
@swift-ci Please test |
@swift-ci Please build toolchain |
swiftlang/swift-integration-tests#93 |
Build failed |
Build failed |
@swift-ci Please test macOS |
Build failed |
@swift-ci test |
swiftlang/swift-integration-tests#93 |
Build failed |
Build failed |
swiftlang/swift-integration-tests#93 |
@swift-ci test |
Build failed |
Build failed |
swiftlang/swift-integration-tests#93 |
Linux Toolchain (Ubuntu 16.04) Install command |
@swift-ci test |
Build failed |
Build failed |
Adding the required `get_dependencies` class method should resolve the remaining test failures we're seeing for macOS toolchain builds.
swiftlang/swift-integration-tests#93 |
@swift-ci test |
Build failed |
@swift-ci Please test Linux platform |
Linux Toolchain (Ubuntu 16.04) Install command |
macOS Toolchain Install command |
This adds build script products for Swift-DocC and Swift-DocC-Render so that these projects can be built as part of a Swift toolchain.
This adds two new flags to
./utils/build-script
(--swiftdocc
and--swiftdoccrender
) and updates thebuildbot_linux
preset and themixin_osx_package_base
preset to build Swift-DocC but not Swift-DocC-Render.Instead, when only
--swiftdocc
is passed, the Swift-DocC product will copy the already built swift-docc-render template included in the host toolchain (when present) over to the install toolchain. If the host toolchain doesn't include a swift-docc-render template, the Swift-DocC product will raise a warning.This allows developers to build Swift-DocC from source as part of a toolchain without needing to build Swift-DocC-Render from source (assuming that they haven't made any changes to the Swift-DocC-Render source code).
For developers who want to build a toolchain with both Swift-DocC and Swift-DocC-Render built from source, there are new presets that also include the
--swiftdoccrender
flag. There's also a new--swift-docc-render
flag added to./utils/build-toolchain
which selects a preset that build Swift-DocC-Render.Resolves rdar://79703353