-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Swift 5.0 & 5.1 (#26)
* Add support for Swift 5.0 & 5.1 * try to compiler() guard the test * try just compiler() * try separate access * Cannot support Swift 5.0 due to compiler bug #if * Update .swiftformat * Cannot support 5.0 due to compiler bug in #if preventing task-local access * Apply suggestions from code review * Update README.md * formatting Co-authored-by: Konrad `ktoso` Malawski <konrad_malawski@apple.com> Co-authored-by: Konrad `ktoso` Malawski <konrad.malawski@project13.pl>
- Loading branch information
1 parent
8ea1207
commit 6c545ed
Showing
5 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// swift-tools-version:5.1 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "swift-distributed-tracing-baggage", | ||
products: [ | ||
.library( | ||
name: "InstrumentationBaggage", | ||
targets: [ | ||
"InstrumentationBaggage", | ||
] | ||
), | ||
], | ||
targets: [ | ||
.target(name: "InstrumentationBaggage"), | ||
|
||
// ==== -------------------------------------------------------------------------------------------------------- | ||
// MARK: Tests | ||
|
||
.testTarget( | ||
name: "InstrumentationBaggageTests", | ||
dependencies: [ | ||
.target(name: "InstrumentationBaggage"), | ||
] | ||
), | ||
] | ||
) |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: "3" | ||
|
||
services: | ||
|
||
runtime-setup: | ||
image: swift-distributed-tracing-baggage:18.04-5.1 | ||
build: | ||
args: | ||
ubuntu_version: "bionic" | ||
swift_version: "5.1" | ||
|
||
test: | ||
image: swift-distributed-tracing-baggage:18.04-5.1 | ||
|
||
shell: | ||
image: swift-distributed-tracing-baggage:18.04-5.1 |