-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from giginet/swift-510
Support Xcode 15.3 and Swift 5.10
- Loading branch information
Showing
21 changed files
with
298 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- '*' | ||
jobs: | ||
SwiftLint: | ||
strategy: | ||
matrix: | ||
xcode_version: ["15.2"] | ||
env: | ||
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer" | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: SwiftLint | ||
run: swiftlint --strict |
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,94 @@ | ||
// swift-tools-version: 5.6 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
import Foundation | ||
|
||
let package = Package( | ||
name: "Scipio", | ||
platforms: [ | ||
.macOS(.v12), | ||
], | ||
products: [ | ||
.executable(name: "scipio", | ||
targets: ["scipio"]), | ||
.library( | ||
name: "ScipioKit", | ||
targets: ["ScipioKit"]), | ||
.library( | ||
name: "ScipioS3Storage", | ||
targets: ["ScipioS3Storage"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-package-manager.git", | ||
revision: "swift-5.9-RELEASE"), | ||
.package(url: "https://github.com/apple/swift-log.git", | ||
.upToNextMinor(from: "1.4.2")), | ||
.package(url: "https://github.com/apple/swift-collections", | ||
from: "1.0.4"), | ||
.package(url: "https://github.com/apple/swift-argument-parser.git", | ||
from: "1.1.0"), | ||
.package(url: "https://github.com/apple/swift-algorithms.git", | ||
from: "1.0.0"), | ||
.package(url: "https://github.com/onevcat/Rainbow", | ||
.upToNextMinor(from: "4.0.1")), | ||
.package(url: "https://github.com/soto-project/soto-codegenerator", | ||
from: "0.6.0"), | ||
.package(url: "https://github.com/soto-project/soto-core.git", | ||
from: "6.4.0"), | ||
], | ||
targets: [ | ||
.executableTarget(name: "scipio", | ||
dependencies: [ | ||
.target(name: "ScipioKit"), | ||
.product(name: "ArgumentParser", package: "swift-argument-parser"), | ||
]), | ||
.target( | ||
name: "ScipioKit", | ||
dependencies: [ | ||
.product(name: "SwiftPMDataModel-auto", package: "swift-package-manager"), | ||
.product(name: "XCBuildSupport", package: "swift-package-manager"), | ||
.product(name: "Logging", package: "swift-log"), | ||
.product(name: "Collections", package: "swift-collections"), | ||
.product(name: "Algorithms", package: "swift-algorithms"), | ||
.product(name: "Rainbow", package: "Rainbow"), | ||
], | ||
plugins: [ | ||
.plugin(name: "GenerateScipioVersion") | ||
] | ||
), | ||
.plugin( | ||
name: "GenerateScipioVersion", | ||
capability: .buildTool() | ||
), | ||
.target( | ||
name: "ScipioS3Storage", | ||
dependencies: [ | ||
.target(name: "ScipioKit"), | ||
.product(name: "SotoCore", package: "soto-core"), | ||
], | ||
plugins: [ | ||
.plugin(name: "SotoCodeGeneratorPlugin", package: "soto-codegenerator"), | ||
] | ||
), | ||
.testTarget( | ||
name: "ScipioKitTests", | ||
dependencies: [ | ||
.target(name: "ScipioKit"), | ||
], | ||
exclude: ["Resources/Fixtures/"], | ||
resources: [.copy("Resources/Fixtures")]), | ||
.testTarget( | ||
name: "ScipioS3StorageTests", | ||
dependencies: ["ScipioS3Storage"]), | ||
] | ||
) | ||
|
||
let isDevelopment = ProcessInfo.processInfo.environment["SCIPIO_DEVELOPMENT"] == "1" | ||
|
||
// swift-docs is not needed for package users | ||
if isDevelopment { | ||
package.dependencies += [ | ||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"), | ||
] | ||
} |
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
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
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
Oops, something went wrong.