Skip to content

Commit f2e186a

Browse files
seanmrichSeanstephencelis
authored
Sendable support (#30)
* Modified `Gen` to be `Sendable`. Requires its `Value` to also be `Sendable` * Update ci.yml * Minimized use of Sendable to only what's necessary to make `Gen` Sendable * Update ci.yml * Update ci.yml * wip --------- Co-authored-by: Sean <[email protected]> Co-authored-by: Stephen Celis <[email protected]>
1 parent 099f4d2 commit f2e186a

File tree

5 files changed

+89
-65
lines changed

5 files changed

+89
-65
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,23 @@ jobs:
1313
name: MacOS
1414
runs-on: macOS-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Run tests
1818
run: make test-swift
1919
- name: Run tests
2020
run: make build-release-swift
2121

2222
ubuntu:
23-
name: Ubuntu
23+
strategy:
24+
matrix:
25+
swift:
26+
- '5.9'
27+
name: Ubuntu (Swift ${{ matrix.swift }})
2428
runs-on: ubuntu-latest
29+
container: swift:${{ matrix.swift }}
2530
steps:
26-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
2732
- name: Run tests
28-
run: make test-linux
29-
- name: Build for release
30-
run: make build-release-linux
33+
run: swift test --parallel
34+
- name: Run tests (release)
35+
run: swift test -c release --parallel

Package.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.9
22
import Foundation
33
import PackageDescription
44

@@ -8,7 +8,11 @@ let package = Package(
88
.library(name: "Gen", targets: ["Gen"])
99
],
1010
targets: [
11-
.target(name: "Gen", dependencies: []),
11+
.target(
12+
name: "Gen",
13+
dependencies: [],
14+
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")]
15+
),
1216
.testTarget(name: "GenTests", dependencies: ["Gen"]),
1317
]
1418
)

0 commit comments

Comments
 (0)