From 19de34c4d028fe7c6dd7f5b24280af38c4b76d4f Mon Sep 17 00:00:00 2001 From: Asgeir Frimannsson Date: Thu, 16 Jul 2026 22:42:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20okapi-bridge=20in=20CI=20=E2=80=94=20JV?= =?UTF-8?q?M=20requirement=20+=20setup-java=20pattern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01NBoxTTZe69Nyssa6QSMxFK --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 63ea06b..9a2e5c7 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,31 @@ steps: | `version` | Installed version (e.g. `1.0.0`) | | `cache-hit` | Whether the plugin cache was hit | +### With the Okapi bridge (Java plugin) + +The `okapi-bridge` plugin runs Okapi Framework filters as a Java subprocess, +so the runner needs a JVM — Java 11+, or Java 17+ for Okapi 1.48.0 and later. +GitHub's hosted Ubuntu runners ship a default JDK; pin one explicitly with +`setup-java` when you need a specific version: + +```yaml +steps: + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "17" + + - uses: neokapi/setup-kapi@v1 + with: + plugins: | + bowrain + okapi-bridge +``` + +The plugin (bridge JARs included) is cached like any other, keyed on the +plugin set + OS + arch, so the download cost is paid once per runner +image. + ## How it works 1. **Resolve version** — `latest` resolves the newest *stable CLI* release (a `vX.Y.Z` tag). It deliberately does not use GitHub's "latest release" flag: the same repository publishes plugin and app releases (`check-v0.1.0`, `asr-v0.1.1`, `bowrain-v…`), and that flag lands on whichever was published last. Pinned versions pass through.