Skip to content

Commit

Permalink
[#113] Enabled Concurrency Checking (#155)
Browse files Browse the repository at this point in the history
* Enabled complete concurrency checking in `Package.swift`
* Added Swift 6 and Xcode 16 to GitHub Actions workflows
  • Loading branch information
yakovmanshin authored Sep 18, 2024
1 parent 3b22721 commit 384b467
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/Common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ on:
type: boolean
required: true
env:
XCODE_PATH: "/Applications/Xcode_15.3.app"
XCODE_PATH: "/Applications/Xcode_16.0.app"
jobs:
spm_tests_macos:
name: SPM Tests (Swift ${{ matrix.SWIFT_VERSION }} on macOS)
runs-on: ${{ matrix.OS }}
strategy:
matrix:
SWIFT_VERSION: ["5.10", "5.9"]
SWIFT_VERSION: ["6.0", "5.10", "5.9"]
include:
- SWIFT_VERSION: "6.0"
OS: macos-14
XCODE_APP_NAME: "Xcode_16.0"
- SWIFT_VERSION: "5.10"
OS: macos-14
XCODE_APP_NAME: "Xcode_15.3"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
release:
types: [published]
env:
XCODE_PATH: "/Applications/Xcode_15.3.app"
XCODE_PATH: "/Applications/Xcode_16.0.app"
jobs:
run_common_checks:
uses: ./.github/workflows/Common.yml
Expand Down
13 changes: 10 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ let package = Package(
targets: [
.target(
name: "YMFF",
dependencies: ["YMFFProtocols"]
dependencies: ["YMFFProtocols"],
swiftSettings: swiftSettings
),
.target(name: "YMFFProtocols"),
.target(name: "YMFFProtocols", swiftSettings: swiftSettings),
.testTarget(
name: "YMFFTests",
dependencies: ["YMFF"]
dependencies: ["YMFF"],
swiftSettings: swiftSettings
),
]
)

fileprivate let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("StrictConcurrency"),
]

0 comments on commit 384b467

Please sign in to comment.