diff --git a/modules/rules_jni/0.4.0/MODULE.bazel b/modules/rules_jni/0.4.0/MODULE.bazel new file mode 100644 index 00000000000..51c088219c8 --- /dev/null +++ b/modules/rules_jni/0.4.0/MODULE.bazel @@ -0,0 +1,20 @@ +module( + name = "rules_jni", + version = "0.4.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.1.1") +bazel_dep(name = "platforms", version = "0.0.4") + +download_jni_headers = use_extension( + "@rules_jni//bzlmod:extensions.bzl", + "download_jni_headers", +) + +use_repo( + download_jni_headers, + "com_github_openjdk_jdk_jni_h", + "com_github_openjdk_jdk_unix_jni_md_h", + "com_github_openjdk_jdk_windows_jni_md_h", +) diff --git a/modules/rules_jni/0.4.0/presubmit.yml b/modules/rules_jni/0.4.0/presubmit.yml new file mode 100644 index 00000000000..cabfb7a087d --- /dev/null +++ b/modules/rules_jni/0.4.0/presubmit.yml @@ -0,0 +1,29 @@ +matrix: + platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"] + +tasks: + build_targets: + name: "Build targets under //jni" + platform: ${{ platform }} + build_targets: + - "@rules_jni//jni/..." + +bcr_test_module: + module_path: "tests" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + tasks: + run_tests: + name: "Run test module" + 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" + platform: centos7 + environment: + JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64 + test_targets: + - "//..." diff --git a/modules/rules_jni/0.4.0/source.json b/modules/rules_jni/0.4.0/source.json new file mode 100644 index 00000000000..058c0ff1e40 --- /dev/null +++ b/modules/rules_jni/0.4.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-mjh6Bm9oOoqsTRZZF9x/4V7CogkxiUqX4VOpyqthI8o=", + "strip_prefix": "rules_jni-0.4.0", + "url": "https://github.com/fmeum/rules_jni/archive/refs/tags/v0.4.0.tar.gz" +} diff --git a/modules/rules_jni/metadata.json b/modules/rules_jni/metadata.json index c2d37b41f7d..7f4c1214e1b 100644 --- a/modules/rules_jni/metadata.json +++ b/modules/rules_jni/metadata.json @@ -8,7 +8,8 @@ } ], "versions": [ - "0.3.1" + "0.3.1", + "0.4.0" ], "yanked_versions": {} }