Run TSan job on Azure Pipelines with Bazel (#4130)
This commit is contained in:
parent
bf9bf83143
commit
848ec452c3
|
@ -82,11 +82,17 @@ jobs:
|
||||||
variables:
|
variables:
|
||||||
DEVELOPER_DIR: /Applications/Xcode_13.3.1.app
|
DEVELOPER_DIR: /Applications/Xcode_13.3.1.app
|
||||||
steps:
|
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
|
displayName: Build SwiftLint
|
||||||
- script: swift run --configuration release --sanitize thread swiftlint lint --lenient
|
- script: ./bazel-bin/swiftlint --lenient
|
||||||
displayName: Pre-cache SwiftLint Run
|
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
|
displayName: Post-cache SwiftLint Run
|
||||||
|
|
||||||
- job: jazzy
|
- job: jazzy
|
||||||
|
|
Loading…
Reference in New Issue