Skip to content

Change default release version for GitHub action to 603.0.0 + add version marker module #3050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true
swift_syntax_version:
type: string
default: 601.0.0
default: 603.0.0
description: "swift-syntax version"
# The version of swift-syntax to tag. If this is a prerelease, `-prerelease-<date>` is added to this version.
required: true
Expand Down
8 changes: 8 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ swift_syntax_library(
":SwiftSyntax600",
":SwiftSyntax601",
":SwiftSyntax602",
":SwiftSyntax603",
":_SwiftSyntaxCShims",
],
)
Expand Down Expand Up @@ -260,6 +261,13 @@ swift_syntax_library(
],
)

swift_syntax_library(
name = "SwiftSyntax603",
srcs = glob(["Sources/VersionMarkerModules/SwiftSyntax603/**/*.swift"]),
deps = [
],
)

swift_syntax_library(
name = "SwiftSyntaxBuilder",
deps = [
Expand Down
6 changes: 6 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ let package = Package(
name: "SwiftSyntax",
dependencies: [
"_SwiftSyntaxCShims", "SwiftSyntax509", "SwiftSyntax510", "SwiftSyntax600", "SwiftSyntax601", "SwiftSyntax602",
"SwiftSyntax603",
],
exclude: ["CMakeLists.txt"],
swiftSettings: swiftSyntaxSwiftSettings
Expand Down Expand Up @@ -250,6 +251,11 @@ let package = Package(
path: "Sources/VersionMarkerModules/SwiftSyntax602"
),

.target(
name: "SwiftSyntax603",
path: "Sources/VersionMarkerModules/SwiftSyntax603"
),

// MARK: SwiftSyntaxBuilder

.target(
Expand Down
10 changes: 6 additions & 4 deletions Sources/VersionMarkerModules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax509 STATIC
SwiftSyntax509/Empty.swift)
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax510 STATIC
SwiftSyntax509/Empty.swift)
SwiftSyntax510/Empty.swift)
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax600 STATIC
SwiftSyntax509/Empty.swift)
SwiftSyntax600/Empty.swift)
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax601 STATIC
SwiftSyntax509/Empty.swift)
SwiftSyntax601/Empty.swift)
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax602 STATIC
SwiftSyntax509/Empty.swift)
SwiftSyntax602/Empty.swift)
add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax603 STATIC
SwiftSyntax603/Empty.swift)
15 changes: 15 additions & 0 deletions Sources/VersionMarkerModules/SwiftSyntax603/Empty.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

// The SwiftSyntax603 module is intentionally empty.
// It serves as an indicator which version of swift-syntax a package is building against.
// See the 'Macro Versioning.md' document for more details.