Skip to content

ocx-sh/setup-ocx

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

setup-ocx

GitHub Action to install the OCX package manager

CI License

Usage

- uses: ocx-sh/setup-ocx@v1
  with:
    version: latest

Inputs

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.

Outputs

Output Description
version The installed OCX version
ocx-path Path to the OCX binary directory
cache-hit Whether the binary was restored from cache

Examples

Install latest version:

steps:
  - uses: ocx-sh/setup-ocx@v1
  - run: ocx exec ocx.sh/corretto:25 -- java --version

Pin 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: musl

Development

See 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 dist

Community

License

setup-ocx is licensed under the Apache License, Version 2.0.

About

GitHub Action to install the OCX package manager.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors