Skip to content

Commit b3003b4

Browse files
authored
Bump Swift Syntax (#1)
1 parent 271b7f5 commit b3003b4

File tree

7 files changed

+63
-39
lines changed

7 files changed

+63
-39
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,41 @@ jobs:
2626
- macOS
2727
- tvOS
2828
- watchOS
29-
swift:
30-
- "6.0"
31-
- "6.1"
29+
xcode:
30+
- "16.2"
31+
- "16.4"
32+
- "26.0"
3233
include:
33-
- action: test
34+
- xcode: "16.2"
35+
swift: "6.0"
36+
- xcode: "16.4"
37+
swift: "6.1"
38+
- xcode: "26.0"
39+
swift: "6.2"
3440
steps:
35-
- uses: actions/checkout@v4
36-
- uses: mxcl/xcodebuild@v3
41+
- name: Git Checkout
42+
uses: actions/checkout@v4
43+
44+
- name: Select Xcode version
45+
uses: mxcl/xcodebuild@v3
46+
with:
47+
xcode: ~${{ matrix.xcode }}
48+
action: none
49+
verbosity: xcbeautify
50+
51+
- name: Remove Derived Data
52+
run: rm -rf ~/Library/Developer/Xcode/DerivedData
53+
54+
- if: ${{ matrix.platform != 'macOS' }}
55+
name: Download Default Runtime
56+
run: xcodebuild -downloadPlatform ${{ matrix.platform }}
57+
58+
- name: Test Library
59+
uses: mxcl/xcodebuild@v3
3760
with:
38-
action: ${{ matrix.action }}
61+
action: test
3962
platform: ${{ matrix.platform }}
40-
swift: ~${{ matrix.swift }}
63+
xcode: ~${{ matrix.xcode }}
4164
workspace: ObjCRuntimeTools.xcworkspace
4265
scheme: ObjCRuntimeTools
66+
verbosity: xcbeautify

ObjCRuntimeTools.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ package.targets += [
3838
name: "AssociationMacro",
3939
dependencies: [
4040
.product(name: "SwiftSyntax", package: "swift-syntax"),
41+
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
4142
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
4243
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
43-
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
44-
.product(name: "SwiftParserDiagnostics", package: "swift-syntax"),
4544
]
4645
),
4746

@@ -51,6 +50,7 @@ package.targets += [
5150
"Association",
5251
"AssociationMacro",
5352
.product(name: "MacroTesting", package: "swift-macro-testing"),
53+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
5454
]
5555
),
5656
]
@@ -66,11 +66,10 @@ package.targets += [
6666
.macro(
6767
name: "SwizzlingMacro",
6868
dependencies: [
69-
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
7069
.product(name: "SwiftSyntax", package: "swift-syntax"),
71-
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
7270
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
73-
.product(name: "SwiftParserDiagnostics", package: "swift-syntax"),
71+
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
72+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
7473
]
7574
),
7675

@@ -80,11 +79,12 @@ package.targets += [
8079
"Swizzling",
8180
"SwizzlingMacro",
8281
.product(name: "MacroTesting", package: "swift-macro-testing"),
82+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
8383
]
8484
),
8585
]
8686

8787
package.dependencies += [
8888
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.6.0"),
89-
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"602.0.0"),
89+
.package(url: "https://github.com/swiftlang/swift-syntax", "600.0.0"..<"603.0.0"),
9090
]

Tests/AssociationTests/AssociatedMacroTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
#if os(macOS) // NB: can only test macros on macOS
23+
#if canImport(AssociationMacro)
2424
import MacroTesting
2525
import SwiftSyntaxMacros
2626
import SwiftSyntaxMacrosTestSupport
@@ -31,9 +31,9 @@ import Testing
3131

3232
@Suite(
3333
.macros(
34+
["Associated": AssociatedMacro.self],
3435
indentationWidth: .tab,
35-
record: .never,
36-
macros: ["Associated": AssociatedMacro.self]
36+
record: .never
3737
)
3838
)
3939
struct AssociatedTests {

Tests/AssociationTests/PatternBindingSyntax+Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
#if os(macOS) // NB: can only test macros on macOS
23+
#if canImport(AssociationMacro)
2424
import SwiftSyntax
2525
import SwiftSyntaxBuilder
2626
import Testing

Tests/SwizzlingTests/SwizzleMacroTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#if os(macOS) // NB: can only test macros on macOS
1+
#if canImport(SwizzlingMacro)
22
import MacroTesting
33
import Swizzling
44
import SwizzlingMacro
55
import Testing
66

77
@Suite(
88
.macros(
9+
["swizzle": SwizzleMacro.self],
910
indentationWidth: .tab,
10-
record: .failed,
11-
macros: ["swizzle": SwizzleMacro.self]
11+
record: .failed
1212
)
1313
)
1414
struct SwizzleMacroTests {}

0 commit comments

Comments
 (0)