Skip to content

Commit 775174b

Browse files
authored
[CI] Use Bazel for "Register" job (#6110)
Which should be much faster than the previous SwiftPM build in the common case of not having to rebuild SwiftSyntax.
1 parent 8767bb6 commit 775174b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ steps:
2828
- label: "Registration"
2929
commands:
3030
- echo "+++ Register Rules and Reporters"
31-
- make --always-make register
31+
- make --always-make bazel_register
3232
- echo "+++ Diff Files"
3333
- git diff --quiet HEAD

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ register:
3636
swift run swiftlint-dev rules register
3737
swift run swiftlint-dev reporters register
3838

39+
bazel_register:
40+
bazel build //:swiftlint-dev
41+
./bazel-bin/swiftlint-dev rules register
42+
./bazel-bin/swiftlint-dev reporters register
43+
3944
test: clean_xcode
4045
$(BUILD_TOOL) $(XCODEFLAGS) test
4146

0 commit comments

Comments
 (0)