Skip to content

Commit

Permalink
Add bazel matrix to presubmit.yml (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored May 16, 2024
1 parent 7cb9c69 commit eb9b7ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
matrix:
bazel: [6.x, 7.x]
platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"]

tasks:
build_targets:
name: "Build targets under //jni"
bazel: ${{ bazel }}
platform: ${{ platform }}
build_targets:
- "@rules_jni//jni/..."

bcr_test_module:
module_path: "tests"
matrix:
bazel: [6.x, 7.x]
platform: ["debian10", "macos", "ubuntu2004", "windows"]
tasks:
run_tests:
name: "Run test module"
bazel: ${{ bazel }}
platform: ${{ platform }}
test_targets:
- "//..."
# The CentOS image does not set JAVA_HOME. To make the tests work, we set it
# manually.
run_tests_centos7:
name: "Run test module"
bazel: ${{ bazel }}
platform: centos7
environment:
JAVA_HOME: /usr/lib/jvm/java-1.8.0
Expand Down

0 comments on commit eb9b7ed

Please sign in to comment.