Skip to content

Commit e02e0c0

Browse files
committed
Fix Bazel build
1 parent ef367f7 commit e02e0c0

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.2
1+
7.6.2

.github/workflows/pull_request.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ jobs:
2525
with:
2626
api_breakage_check_enabled: false # https://github.com/swiftlang/swift-syntax/issues/3010
2727
docs_check_additional_arguments: "--disable-parameters-and-returns-validation"
28+
bazel_build:
29+
name: Bazel Build
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Update environment
33+
run: |
34+
echo "/usr/share/swift/usr/bin" >> $GITHUB_PATH
35+
echo "CC=clang" >> $GITHUB_ENV
36+
- name: Build with Bazel
37+
run: bazel build //...
38+
2839
verify_source_code:
2940
name: Validate generated code
3041
runs-on: ubuntu-latest

BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ swift_syntax_library(
208208
swift_syntax_test(
209209
name = "SwiftRefactorTest",
210210
deps = [
211+
":SwiftIDEUtils",
211212
":SwiftRefactor",
212213
":_SwiftSyntaxTestSupport",
213214
],
@@ -317,6 +318,7 @@ swift_syntax_library(
317318
name = "SwiftSyntaxMacros",
318319
deps = [
319320
":SwiftDiagnostics",
321+
":SwiftIfConfig",
320322
":SwiftParser",
321323
":SwiftSyntax",
322324
":SwiftSyntaxBuilder",

0 commit comments

Comments
 (0)