diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a82ef7c..2fa5321 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v6 - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: "26.4" + xcode-version: "latest-stable" - uses: SwiftyLab/setup-swift@latest with: swift-version: "6.3" @@ -45,7 +45,7 @@ jobs: name: Run swift-format runs-on: ubuntu-latest container: - image: swift:latest + image: swift:6.3 steps: - uses: actions/checkout@v6 - name: Download .swift-format config @@ -61,7 +61,7 @@ jobs: - uses: actions/checkout@v6 - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: "26.4" + xcode-version: "latest-stable" - uses: SwiftyLab/setup-swift@latest with: swift-version: "6.3" diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml index 64e9c4f..8c89b18 100644 --- a/.github/workflows/periphery.yml +++ b/.github/workflows/periphery.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v6 - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: "26.4" + xcode-version: "latest-stable" - uses: SwiftyLab/setup-swift@latest with: swift-version: "6.3" diff --git a/Package.swift b/Package.swift index c07137d..8ac9e48 100644 --- a/Package.swift +++ b/Package.swift @@ -3,9 +3,13 @@ import PackageDescription -let approachableConcurrency: [SwiftSetting] = [ +let upcomingFeatures: [SwiftSetting] = [ .enableUpcomingFeature("NonisolatedNonsendingByDefault"), - .enableUpcomingFeature("InferIsolatedConformances") + .enableUpcomingFeature("InferIsolatedConformances"), + .enableUpcomingFeature("ImmutableWeakCaptures"), + .enableUpcomingFeature("MemberImportVisibility"), + .enableUpcomingFeature("ExistentialAny"), + .enableUpcomingFeature("InternalImportsByDefault") ] let package = Package( @@ -28,7 +32,7 @@ let package = Package( .product(name: "Algorithms", package: "swift-algorithms"), .product(name: "Progress", package: "Progress.swift") ], - swiftSettings: approachableConcurrency + swiftSettings: upcomingFeatures ) ], swiftLanguageModes: [.v6] diff --git a/Sources/lib/Games.swift b/Sources/lib/Games.swift index dc769d1..74b2e91 100644 --- a/Sources/lib/Games.swift +++ b/Sources/lib/Games.swift @@ -12,7 +12,7 @@ struct Game: Codable { /// All other words that can be formed by combinations of the tiles. let otherWords: Set - func encode(to encoder: Encoder) throws { + func encode(to encoder: any Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encode(tiles.shuffled(), forKey: .tiles)