From 848ec452c34475c23d65f7279b50e0b3e40d6901 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Sun, 28 Aug 2022 10:51:58 -0400 Subject: [PATCH] Run TSan job on Azure Pipelines with Bazel (#4130) --- azure-pipelines.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e0e762306..a13f5c471 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -82,11 +82,17 @@ jobs: variables: DEVELOPER_DIR: /Applications/Xcode_13.3.1.app steps: - - script: swift build --configuration release --sanitize thread + - script: | + curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.12.2/bazelisk-darwin-amd64 -o bazelisk + chmod +x bazelisk + displayName: Install Bazel + - script: ./bazelisk build --remote_cache=grpc://$BAZEL_REMOTE_CREDENTIALS@swiftlint-ci.jpsim.com:9092 -c opt --features=tsan swiftlint + env: + BAZEL_REMOTE_CREDENTIALS: $(BAZEL_REMOTE_CREDENTIALS) displayName: Build SwiftLint - - script: swift run --configuration release --sanitize thread swiftlint lint --lenient + - script: ./bazel-bin/swiftlint --lenient displayName: Pre-cache SwiftLint Run - - script: swift run --configuration release --sanitize thread swiftlint lint --lenient + - script: ./bazel-bin/swiftlint --lenient displayName: Post-cache SwiftLint Run - job: jazzy