Skip to content

Commit 7ba88aa

Browse files
authored
Merge pull request #3050 from ahoppen/default-release-version
Change default release version for GitHub action to 603.0.0 + add version marker module
2 parents a292dd3 + 0ef1dc3 commit 7ba88aa

File tree

5 files changed

+36
-5
lines changed

5 files changed

+36
-5
lines changed

.github/workflows/publish_release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
required: true
1212
swift_syntax_version:
1313
type: string
14-
default: 601.0.0
14+
default: 603.0.0
1515
description: "swift-syntax version"
1616
# The version of swift-syntax to tag. If this is a prerelease, `-prerelease-<date>` is added to this version.
1717
required: true

BUILD.bazel

+8
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ swift_syntax_library(
221221
":SwiftSyntax600",
222222
":SwiftSyntax601",
223223
":SwiftSyntax602",
224+
":SwiftSyntax603",
224225
":_SwiftSyntaxCShims",
225226
],
226227
)
@@ -260,6 +261,13 @@ swift_syntax_library(
260261
],
261262
)
262263

264+
swift_syntax_library(
265+
name = "SwiftSyntax603",
266+
srcs = glob(["Sources/VersionMarkerModules/SwiftSyntax603/**/*.swift"]),
267+
deps = [
268+
],
269+
)
270+
263271
swift_syntax_library(
264272
name = "SwiftSyntaxBuilder",
265273
deps = [

Package.swift

+6
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ let package = Package(
212212
name: "SwiftSyntax",
213213
dependencies: [
214214
"_SwiftSyntaxCShims", "SwiftSyntax509", "SwiftSyntax510", "SwiftSyntax600", "SwiftSyntax601", "SwiftSyntax602",
215+
"SwiftSyntax603",
215216
],
216217
exclude: ["CMakeLists.txt"],
217218
swiftSettings: swiftSyntaxSwiftSettings
@@ -250,6 +251,11 @@ let package = Package(
250251
path: "Sources/VersionMarkerModules/SwiftSyntax602"
251252
),
252253

254+
.target(
255+
name: "SwiftSyntax603",
256+
path: "Sources/VersionMarkerModules/SwiftSyntax603"
257+
),
258+
253259
// MARK: SwiftSyntaxBuilder
254260

255261
.target(

Sources/VersionMarkerModules/CMakeLists.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax509 STATIC
1212
SwiftSyntax509/Empty.swift)
1313
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax510 STATIC
14-
SwiftSyntax509/Empty.swift)
14+
SwiftSyntax510/Empty.swift)
1515
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax600 STATIC
16-
SwiftSyntax509/Empty.swift)
16+
SwiftSyntax600/Empty.swift)
1717
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax601 STATIC
18-
SwiftSyntax509/Empty.swift)
18+
SwiftSyntax601/Empty.swift)
1919
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax602 STATIC
20-
SwiftSyntax509/Empty.swift)
20+
SwiftSyntax602/Empty.swift)
21+
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax603 STATIC
22+
SwiftSyntax603/Empty.swift)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
13+
// The SwiftSyntax603 module is intentionally empty.
14+
// It serves as an indicator which version of swift-syntax a package is building against.
15+
// See the 'Macro Versioning.md' document for more details.

0 commit comments

Comments
 (0)