Skip to content

Installation

CoCoCheck is distributed as a single binary without runtime dependencies. Choose the installation method that fits your use case:

  • On your own machine, install a prebuilt binary. If you use Rust, cargo binstall cococheck installs the same binary.
  • In CI, use the CoCoCheck action in GitHub Actions, which installs CoCoCheck itself, or download a prebuilt binary in the job. See Using CoCoCheck in CI.
  • To build CoCoCheck yourself, or to use the development version, install it from source.

Prebuilt binaries

Every release provides prebuilt binaries for the following platforms. They have no dependencies and do not require Rust.

Platform Architecture Archive
Linux x86_64 cococheck-x86_64-unknown-linux-musl.tar.gz
Linux aarch64 cococheck-aarch64-unknown-linux-musl.tar.gz
macOS aarch64 cococheck-aarch64-apple-darwin.tar.gz
macOS x86_64 cococheck-x86_64-apple-darwin.tar.gz
Windows x86_64 cococheck-x86_64-pc-windows-msvc.zip

To install the latest release:

base=https://github.com/coco-tools/cococheck/releases/latest/download
mkdir -p ~/.local/bin
curl -sSfL "$base/cococheck-$(uname -m)-unknown-linux-musl.tar.gz" \
  | tar -xz -C ~/.local/bin cococheck

This installs cococheck to ~/.local/bin. Make sure that this directory is in your PATH.

base=https://github.com/coco-tools/cococheck/releases/latest/download
arch=$(uname -m | sed s/arm64/aarch64/)
mkdir -p ~/.local/bin
curl -sSfL "$base/cococheck-$arch-apple-darwin.tar.gz" \
  | tar -xz -C ~/.local/bin cococheck

This installs cococheck to ~/.local/bin. Make sure that this directory is in your PATH.

$base = "https://github.com/coco-tools/cococheck/releases/latest/download"
Invoke-WebRequest "$base/cococheck-x86_64-pc-windows-msvc.zip" `
  -OutFile "$env:TEMP\cococheck.zip"
Expand-Archive "$env:TEMP\cococheck.zip" `
  "$env:LOCALAPPDATA\Programs\cococheck" -Force

This installs cococheck.exe to %LOCALAPPDATA%\Programs\cococheck. Make sure that this directory is in your PATH.

To install manually, download the archive for your platform from the latest release, extract it, and move the cococheck binary to a directory in your PATH. Every archive comes with a .sha256 file that contains its SHA-256 checksum.

With cargo-binstall, cargo binstall cococheck downloads the binary for your platform and installs it into Cargo's binary directory.

From source

Building CoCoCheck requires Rust 1.89 or later. Install the latest release from crates.io with Cargo:

cargo install cococheck

This installs the cococheck binary into Cargo's binary directory, usually ~/.cargo/bin.

To install the development version from the Git repository instead:

cargo install --git https://github.com/coco-tools/cococheck cococheck

To build from source instead, clone the repository and build the release binary:

git clone https://github.com/coco-tools/cococheck.git
cd cococheck
cargo build --release

The binary is written to target/release/cococheck.