Skip to content

Commit

Permalink
feat: Require Swift DocC only when env var is set (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins authored May 14, 2024
1 parent 7824221 commit f62ceed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/generate-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
runs-on: ubuntu-latest
container: swift:5.10-jammy
env:
AWS_SWIFT_SDK_ENABLE_DOCC: 1
IGNORE: none
outputs:
version: ${{ steps.set-version.outputs.version }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func addCRTDependency(_ version: Version) {
}

func addDoccDependency() {
guard ProcessInfo.processInfo.environment["AWS_SWIFT_SDK_ENABLE_DOCC"] != nil else { return }
package.dependencies += [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
]
Expand Down
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func addCRTDependency(_ version: Version) {
}

func addDoccDependency() {
guard ProcessInfo.processInfo.environment["AWS_SWIFT_SDK_ENABLE_DOCC"] != nil else { return }
package.dependencies += [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
]
Expand Down

0 comments on commit f62ceed

Please sign in to comment.