- uses: ocx-sh/setup-ocx@v1
with:
version: latest| Input | Description | Default |
|---|---|---|
version |
OCX version to install ("latest" or exact like "0.2.0") |
latest |
github-token |
GitHub token for API requests and release downloads | ${{ github.token }} |
libc |
Linux C library variant ("gnu" or "musl"). Auto-detected if not set. |
| Output | Description |
|---|---|
version |
The installed OCX version |
ocx-path |
Path to the OCX binary directory |
cache-hit |
Whether the binary was restored from cache |
Install latest version:
steps:
- uses: ocx-sh/setup-ocx@v1
- run: ocx exec ocx.sh/corretto:25 -- java --versionPin a specific version:
steps:
- uses: ocx-sh/setup-ocx@v1
with:
version: '0.2.0'Force musl binary (e.g., for Alpine containers):
steps:
- uses: ocx-sh/setup-ocx@v1
with:
version: latest
libc: muslSee CONTRIBUTING.md for the full guide. Quick start:
git clone https://github.com/ocx-sh/setup-ocx.git
cd setup-ocx
task install # install dependencies
task test # run unit tests
task check # test + build + verify distsetup-ocx is licensed under the Apache License, Version 2.0.