Skip to content

Commit

Permalink
Publish fmeum/[email protected] (#907)
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] authored Sep 7, 2023
1 parent 6614023 commit ceebb9a
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 1 deletion.
21 changes: 21 additions & 0 deletions modules/rules_jni/0.9.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module(
name = "rules_jni",
version = "0.9.1",
compatibility_level = 1,
)

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

download_jdk_deps = use_extension(
"@rules_jni//bzlmod:extensions.bzl",
"download_jdk_deps",
)
use_repo(
download_jdk_deps,
"com_github_openjdk_jdk_jni_h",
"com_github_openjdk_jdk_license",
"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.9.1/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -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.9.1",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.3.0")
29 changes: 29 additions & 0 deletions modules/rules_jni/0.9.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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:
- "//..."
9 changes: 9 additions & 0 deletions modules/rules_jni/0.9.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-nuWkbCxx8YVyswfEEwA4Rw027FI8Yvb6QDMpmIEt2Nc=",
"strip_prefix": "",
"url": "https://github.com/fmeum/rules_jni/releases/download/v0.9.1/rules_jni-v0.9.1.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-3ly05FYpgaR8OicB0HvqUJyn8TA1Rz+QBBrjA/Bvk40="
},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/rules_jni/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"0.6.0",
"0.6.1",
"0.7.0",
"0.8.0"
"0.8.0",
"0.9.1"
],
"yanked_versions": {}
}

0 comments on commit ceebb9a

Please sign in to comment.