-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Sendable and Add Swift 6.0 Build (#25)
* Bump github.com/apple/swift-openapi-generator from 1.2.1 to 1.4.0 Bumps [github.com/apple/swift-openapi-generator](https://github.com/apple/swift-openapi-generator) from 1.2.1 to 1.4.0. - [Release notes](https://github.com/apple/swift-openapi-generator/releases) - [Commits](apple/swift-openapi-generator@1.2.1...1.4.0) --- updated-dependencies: - dependency-name: github.com/apple/swift-openapi-generator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/apple/swift-openapi-urlsession from 1.0.0 to 1.0.2 Bumps [github.com/apple/swift-openapi-urlsession](https://github.com/apple/swift-openapi-urlsession) from 1.0.0 to 1.0.2. - [Release notes](https://github.com/apple/swift-openapi-urlsession/releases) - [Commits](apple/swift-openapi-urlsession@1.0.0...1.0.2) --- updated-dependencies: - dependency-name: github.com/apple/swift-openapi-urlsession dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/apple/swift-openapi-runtime from 1.3.2 to 1.6.0 Bumps [github.com/apple/swift-openapi-runtime](https://github.com/apple/swift-openapi-runtime) from 1.3.2 to 1.6.0. - [Release notes](https://github.com/apple/swift-openapi-runtime/releases) - [Commits](apple/swift-openapi-runtime@1.3.2...1.6.0) --- updated-dependencies: - dependency-name: github.com/apple/swift-openapi-runtime dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump github.com/apple/swift-openapi-runtime from 1.3.2 to 1.4.0 Bumps [github.com/apple/swift-openapi-runtime](https://github.com/apple/swift-openapi-runtime) from 1.3.2 to 1.4.0. - [Release notes](https://github.com/apple/swift-openapi-runtime/releases) - [Commits](apple/swift-openapi-runtime@1.3.2...1.4.0) --- updated-dependencies: - dependency-name: github.com/apple/swift-openapi-runtime dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * adding dev container * adding ci update (#18) * Setting up Package for Swift 6 * setting up swift 6 * fixing swift 5.9 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2fa4b95
commit f49b4c9
Showing
17 changed files
with
267 additions
and
55 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,39 @@ | ||
{ | ||
"name": "Swift", | ||
"image": "swift:6.0", | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "false", | ||
"username": "vscode", | ||
"upgradePackages": "false" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "os-provided", | ||
"ppa": "false" | ||
} | ||
}, | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"lldb.library": "/usr/lib/liblldb.so" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"sswg.swift-lang" | ||
] | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
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,39 @@ | ||
{ | ||
"name": "Swift", | ||
"image": "swift:5.9", | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "false", | ||
"username": "vscode", | ||
"upgradePackages": "false" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "os-provided", | ||
"ppa": "false" | ||
} | ||
}, | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"lldb.library": "/usr/lib/liblldb.so" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"sswg.swift-lang" | ||
] | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "root" | ||
} |
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,39 @@ | ||
{ | ||
"name": "Swift", | ||
"image": "swift:6.0", | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": "false", | ||
"username": "vscode", | ||
"upgradePackages": "false" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "os-provided", | ||
"ppa": "false" | ||
} | ||
}, | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined" | ||
], | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"lldb.library": "/usr/lib/liblldb.so" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"sswg.swift-lang" | ||
] | ||
} | ||
}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// swift-tools-version: 6.0 | ||
// swiftlint:disable explicit_acl explicit_top_level_acl | ||
import PackageDescription | ||
|
||
let swiftSettings: [SwiftSetting] = [ | ||
SwiftSetting.enableExperimentalFeature("AccessLevelOnImport"), | ||
SwiftSetting.enableExperimentalFeature("BitwiseCopyable"), | ||
SwiftSetting.enableExperimentalFeature("GlobalActorIsolatedTypesUsability"), | ||
SwiftSetting.enableExperimentalFeature("IsolatedAny"), | ||
SwiftSetting.enableExperimentalFeature("MoveOnlyPartialConsumption"), | ||
SwiftSetting.enableExperimentalFeature("NestedProtocols"), | ||
SwiftSetting.enableExperimentalFeature("NoncopyableGenerics"), | ||
SwiftSetting.enableExperimentalFeature("RegionBasedIsolation"), | ||
SwiftSetting.enableExperimentalFeature("TransferringArgsAndResults"), | ||
SwiftSetting.enableExperimentalFeature("VariadicGenerics"), | ||
|
||
SwiftSetting.enableUpcomingFeature("FullTypedThrows"), | ||
SwiftSetting.enableUpcomingFeature("InternalImportsByDefault") | ||
|
||
// SwiftSetting.unsafeFlags([ | ||
// "-Xfrontend", | ||
// "-warn-long-function-bodies=100" | ||
// ]), | ||
// SwiftSetting.unsafeFlags([ | ||
// "-Xfrontend", | ||
// "-warn-long-expression-type-checking=100" | ||
// ]) | ||
] | ||
|
||
let package = Package( | ||
name: "IPSWDownloads", | ||
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)], | ||
products: [ | ||
.library(name: "IPSWDownloads", targets: ["IPSWDownloads"]) | ||
], | ||
dependencies: [ | ||
.package( | ||
url: "https://github.com/brightdigit/OperatingSystemVersion", | ||
from: "1.0.0-beta.1" | ||
), | ||
.package( | ||
url: "https://github.com/apple/swift-openapi-generator", | ||
from: "1.0.0" | ||
), | ||
.package( | ||
url: "https://github.com/apple/swift-openapi-runtime", | ||
from: "1.0.0" | ||
), | ||
.package( | ||
url: "https://github.com/apple/swift-openapi-urlsession", | ||
from: "1.0.0" | ||
) | ||
], | ||
targets: [ | ||
.target( | ||
name: "IPSWDownloads", | ||
dependencies: [ | ||
.product(name: "OperatingSystemVersion", package: "OperatingSystemVersion"), | ||
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), | ||
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession") | ||
], | ||
swiftSettings: swiftSettings | ||
), | ||
.testTarget( | ||
name: "IPSWDownloadsTests", | ||
dependencies: ["IPSWDownloads"] | ||
) | ||
] | ||
) | ||
// swiftlint:enable explicit_acl explicit_top_level_acl |
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.