Skip to content

Commit

Permalink
Updated presubmit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsky committed Aug 31, 2024
1 parent 5185620 commit c1e900f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
61 changes: 31 additions & 30 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
matrix:
bazel:
- 7.x

tasks:
verify_targets_linux:
name: Verify Targets (Linux)
platform: ubuntu2004
bazel: ${{ bazel }}
environment:
CC: "clang"
SWIFT_VERSION: "5.9.2"
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
PATH: "$PATH:$SWIFT_HOME/usr/bin"
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:
- "@asc_swift//:*"
verify_targets_macos:
name: Verify Targets (macOS)
platform: macos
bazel: ${{ bazel }}
build_targets:
- "@asc_swift//:*"
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
bcr_test_module:
module_path: Examples/bzlmod
matrix:
bazel:
- 7.x
tasks:
verify_targets_linux:
name: Verify Targets (Linux)
platform: ubuntu2004
bazel: ${{ bazel }}
environment:
CC: "clang"
SWIFT_VERSION: "5.9.2"
SWIFT_HOME: "$HOME/swift-5.9.2"
PATH: "$PATH:$HOME/swift-5.9.2/usr/bin"
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:
- "//..."
verify_targets_macos:
name: Verify Targets (macOS)
platform: macos
bazel: ${{ bazel }}
build_targets:
- "//..."
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
2 changes: 1 addition & 1 deletion Examples/bzlmod/MyASCTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public struct MyASCTool {
keyID: "...",
issuerID: "...",
expiryDuration: 20 * 60, // 20 minutes
privateKey: JWT.PrivateKey(contentsOf: URL(filePath: "..."))
privateKey: JWT.PrivateKey(contentsOf: URL(fileURLWithPath: "..."))
)
)

Expand Down

0 comments on commit c1e900f

Please sign in to comment.