Skip to content

Commit

Permalink
Add CI specific Package files for building with warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abandy committed Jun 20, 2024
1 parent 89d6354 commit 856e891
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 2 additions & 0 deletions ci/scripts/swift_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ popd

source_dir=${1}/swift/Arrow
pushd ${source_dir}
sed -i .old 's/\/\/ build://g' Package.swift
swift test
popd

source_dir=${1}/swift/ArrowFlight
pushd ${source_dir}
sed -i .old 's/\/\/ build://g' Package.swift
swift test
popd
9 changes: 3 additions & 6 deletions swift/Arrow/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ let package = Package(
targets: [
.target(
name: "ArrowC",
path: "Sources/ArrowC",
swiftSettings: [
.unsafeFlags(["-warnings-as-errors"])
]
path: "Sources/ArrowC"
),
.target(
name: "Arrow",
Expand All @@ -56,14 +53,14 @@ let package = Package(
.product(name: "Atomics", package: "swift-atomics")
],
swiftSettings: [
.unsafeFlags(["-warnings-as-errors"])
.unsafeFlags(["-warnings-as-errors"])
]
),
.testTarget(
name: "ArrowTests",
dependencies: ["Arrow", "ArrowC"],
swiftSettings: [
.unsafeFlags(["-warnings-as-errors"])
.unsafeFlags(["-warnings-as-errors"])
]
)
]
Expand Down
4 changes: 2 additions & 2 deletions swift/ArrowFlight/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ let package = Package(
.product(name: "SwiftProtobuf", package: "swift-protobuf")
],
swiftSettings: [
.unsafeFlags(["-warnings-as-errors"])
// build: .unsafeFlags(["-warnings-as-errors"])
]
),
.testTarget(
name: "ArrowFlightTests",
dependencies: ["ArrowFlight"],
swiftSettings: [
.unsafeFlags(["-warnings-as-errors"])
// build: .unsafeFlags(["-warnings-as-errors"])
]
)
]
Expand Down

0 comments on commit 856e891

Please sign in to comment.