Skip to content

Commit

Permalink
Publish fmeum/rules_jni@v0.8.0 (#816)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Meumertzheim <null>
  • Loading branch information
publish-to-bcr-bot[bot] committed Aug 7, 2023
1 parent 3b13a11 commit 3a5b259
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
19 changes: 19 additions & 0 deletions modules/rules_jni/0.8.0/MODULE.bazel
@@ -0,0 +1,19 @@
module(
name = "rules_jni",
version = "0.8.0",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "platforms", version = "0.0.5")

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",
)
13 changes: 13 additions & 0 deletions modules/rules_jni/0.8.0/patches/module_dot_bazel_version.patch
@@ -0,0 +1,13 @@
Index: MODULE.bazel
===================================================================
--- MODULE.bazel
+++ MODULE.bazel
@@ -1,7 +1,7 @@
module(
name = "rules_jni",
- version = "0.7.0",
+ version = "0.8.0",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.3.0")
29 changes: 29 additions & 0 deletions modules/rules_jni/0.8.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
test_targets:
- "//..."
8 changes: 8 additions & 0 deletions modules/rules_jni/0.8.0/source.json
@@ -0,0 +1,8 @@
{
"integrity": "sha256-jqHpDV+KuFouJn9o5LflnZ4nsA3lMwWasdgp7OK4vKA=",
"url": "https://github.com/fmeum/rules_jni/releases/download/v0.8.0/rules_jni-0.8.0.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-vNTlh0zW7jRL2Arbwp/yZ0Dt7sGh/fHXybq+T9V79o0="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/rules_jni/metadata.json
Expand Up @@ -12,7 +12,8 @@
"0.4.0",
"0.6.0",
"0.6.1",
"0.7.0"
"0.7.0",
"0.8.0"
],
"yanked_versions": {}
}

0 comments on commit 3a5b259

Please sign in to comment.