Install
Surface is one static binary. Most repos never install it directly — they run the GitHub Action or the pre-commit hook, which fetch the binary for you.
GitHub Action
Section titled “GitHub Action”.github/workflows/surface.yml:
name: Surfaceon: pull_requestjobs: surface: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 # plain checkout — do NOT set fetch-depth: 0 - uses: Connorrmcd6/surface@v0.3.2See CI integration for the checkout-depth rule and scoping flags.
pre-commit
Section titled “pre-commit”.pre-commit-config.yaml:
- repo: https://github.com/Connorrmcd6/surface rev: v0.3.0 hooks: - id: surf-checkInstall script
Section titled “Install script”curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/Connorrmcd6/surface/main/install.sh | shPrebuilt binaries are published for macOS (Apple Silicon) and Linux (x86_64). On Intel macOS, Windows, or other architectures, build from source.
From source
Section titled “From source”Requires Rust:
git clone https://github.com/Connorrmcd6/surfacecd surfacecargo install --path surf-cli # puts `surf` on your PATH (~/.cargo/bin)# or: cargo build --release # binary at target/release/surf