Skip to content
Open
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 .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.2
7.6.2
15 changes: 15 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ jobs:
with:
api_breakage_check_enabled: false # https://github.com/swiftlang/swift-syntax/issues/3010
docs_check_additional_arguments: "--disable-parameters-and-returns-validation"
bazel_build:
name: Bazel Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Update environment
run: |
echo "/usr/share/swift/usr/bin" >> $GITHUB_PATH
echo "CC=clang" >> $GITHUB_ENV
- name: Build with Bazel
run: bazel build //...

verify_source_code:
name: Validate generated code
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ swift_syntax_library(
swift_syntax_test(
name = "SwiftRefactorTest",
deps = [
":SwiftIDEUtils",
":SwiftRefactor",
":_SwiftSyntaxTestSupport",
],
Expand Down Expand Up @@ -317,6 +318,7 @@ swift_syntax_library(
name = "SwiftSyntaxMacros",
deps = [
":SwiftDiagnostics",
":SwiftIfConfig",
":SwiftParser",
":SwiftSyntax",
":SwiftSyntaxBuilder",
Expand Down
5 changes: 5 additions & 0 deletions utils/bazel/swift_syntax_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ def swift_syntax_test(name, deps):
minimum_os_version = "13.0",
tags = ["exclusive"],
runner = "//:ios_test_runner",
target_compatible_with = select({
"@platforms//os:ios": [],
"@platforms//os:macos": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
)