Skip to content

Commit

Permalink
Added missing compilers - urls are probably wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Sep 2, 2024
1 parent 604f4d4 commit e6f4f0b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let package = Package(
.package(url: "https://github.com/elegantchaos/Runner.git", from: "2.0.6"),
.package(url: "https://github.com/elegantchaos/SemanticVersion.git", from: "1.1.0"),
.package(url: "https://github.com/elegantchaos/Versionator.git", from: "2.0.2"),
.package(url: "https://github.com/elegantchaos/ChaosTesting", from: "1.0.0"),
.package(url: "https://github.com/elegantchaos/ChaosTesting", from: "1.0.1"),
],

targets: [
Expand Down
15 changes: 15 additions & 0 deletions Sources/ActionBuilderCore/Compiler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@ public final class Compiler: Identifiable, Sendable {
.swift57, name: "Swift 5.7", short: "5.7", linux: "swiftlang/swift:nightly-5.7-bionic",
mac: .toolchain(version: "13.4.1", branch: "swift-5.7-branch", image: "macos-12")),

// https://download.swift.org/development/xcode/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-06-26-a/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-06-26-a-osx.pkg
Compiler(
.swift58, name: "Swift 5.8", short: "5.8", linux: "swiftlang/swift:nightly-5.8-bionic",
mac: .toolchain(version: "13.4.1", branch: "swift-5.8-branch", image: "macos-12")),

// https://download.swift.org/development/xcode/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-06-26-a/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-06-26-a-osx.pkg
Compiler(
.swift59, name: "Swift 5.9", short: "5.9", linux: "swiftlang/swift:nightly-5.9-bionic",
mac: .toolchain(version: "13.4.1", branch: "swift-5.9-branch", image: "macos-12")),

// https://download.swift.org/development/xcode/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-06-26-a/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-06-26-a-osx.pkg
Compiler(
.swift60, name: "Swift 6.0", short: "6.0", linux: "swiftlang/swift:nightly-6.0-bionic",
mac: .toolchain(version: "13.4.1", branch: "swift-6.0-branch", image: "macos-12")),

// https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2022-03-22-a/swift-DEVELOPMENT-SNAPSHOT-2022-03-22-a-osx.pkg
Compiler(
.swiftNightly, name: "Swift Development Nightly", short: "dev",
Expand Down
2 changes: 1 addition & 1 deletion Tests/ActionBuilderCoreTests/ActionBuilderCoreTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Testing
func testParsingPackageMacPlatform() async throws {
let examplePackage = Bundle.module.url(forResource: "Example-mac", withExtension: "package")!
let repo = try await Repo(forPackage: examplePackage)
#expect(repo.enabledCompilers.map { $0.id } == [.swift56, .swift57])
#expect(repo.enabledCompilers.map { $0.id } == [.swift56, .latestRelease])
#expect(repo.enabledPlatforms.map { $0.id } == [.linux, .macOS])
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,26 @@
import PackageDescription

let package = Package(
name: "ExamplePackage",

platforms: [
.macOS(.v12)
],

products: [
.library(
name: "ExamplePackage",
targets: ["ExamplePackage"]
),

],

dependencies: [
],

targets: [
.target(
name: "ExamplePackage",
dependencies: [
]
),
]
name: "ExamplePackage",

platforms: [
.macOS(.v12)
],

products: [
.library(
name: "ExamplePackage",
targets: ["ExamplePackage"]
)

],

dependencies: [],

targets: [
.target(
name: "ExamplePackage",
dependencies: []
)
]
)

0 comments on commit e6f4f0b

Please sign in to comment.