Skip to content

Commit

Permalink
Update Bazel pre-submit steps
Browse files Browse the repository at this point in the history
This is the version of the file that was used to add 0.56.2 to BCR.
  • Loading branch information
SimplyDanny committed Aug 25, 2024
1 parent 48aaca6 commit dfd19bd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
shell_commands: &shell_commands
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
- "mkdir $SWIFT_HOME"
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME"

tasks:
verify_targets_linux:
name: Verify targets (Linux)
name: Verify Targets (Linux)
platform: ubuntu2004
bazel: 7.x
environment:
CC: "clang"
SWIFT_VERSION: "5.10"
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
PATH: "$PATH:$SWIFT_HOME/usr/bin"
shell_commands: *shell_commands
shell_commands:
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
- "mkdir $SWIFT_HOME"
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME"
build_flags:
- "--action_env=PATH"
build_targets:
# TODO: Build `:swiftlint` target when the Swift compiler crash is fixed
- '@swiftlint//:SwiftLintFramework'
- '@swiftlint//:swiftlint'
verify_targets_macos:
name: Verify targets (macOS)
name: Verify Targets (macOS)
platform: macos
bazel: 7.x
build_targets:
- '@swiftlint//:swiftlint'
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"

0 comments on commit dfd19bd

Please sign in to comment.