-
Notifications
You must be signed in to change notification settings - Fork 33
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
Support Xcode 15.3 and Swift 5.10 #113
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5b7548a
Bridge between TSCBasics and Basics
giginet 97fb4a9
Pass build
giginet 1e53893
Sort JSON keys
giginet bf23862
Run CI on Swift 5.10
giginet 4dd1ea7
Rename
giginet be238a6
Surpressing warnings in SwiftLint
giginet f5de33d
Revert names
giginet 3bc01cf
Separate Lint task
giginet c080d7b
Rename
giginet a619e71
Keep backward compatibility
giginet 3fb6fb0
Fix linter
giginet 70bd68a
Use DriverParameters
giginet edea7fa
Skip resource tests
giginet a086b6f
Use SwiftSDK instead
giginet fb6b804
Use SwiftSDK instead
giginet 712c578
Fix warnings on 5.10
giginet 2467f8a
Skip on CI
giginet c205e46
Fix linter
giginet a2157be
Fix comments
giginet 55db0d6
Add comment to skip
giginet a45aaf8
Refer supported platforms to README
giginet c3b18c4
Add comment to CI scripts
giginet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note why this workaround is necessary by comments