Skip to content

Release binaries - #47

Merged
jespera merged 2 commits into
mainfrom
release-binaries
Nov 19, 2026
Merged

jespera merged 2 commits into
mainfrom
release-binaries

Conversation

@jespera

@jespera jespera commented Nov 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

jespera and others added 2 commits November 19, 2026 10:51
Pushing a v* tag builds self-contained binaries and attaches them to a
GitHub Release, so trying diffract no longer needs an OCaml toolchain:

  diffract-linux-x86_64  fully static (musl OCaml switch)
  diffract-macos-arm64   depends only on macOS system libraries

The grammars were already linked statically; the tree-sitter runtime was
not. scripts/build-tree-sitter-static.sh builds it at a pinned version
into a private prefix holding only the archive, so the pkg-config lookup
in lib/dune resolves to it without lib/dune changing. A `static` dune
profile adds -static at link time, and build-grammars.sh takes $CC so the
grammars are compiled with the switch's toolchain (musl-gcc).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A pull request that touches the release machinery builds both binaries
and uploads them as run artifacts; publishing stays gated on a v* tag.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@jespera
jespera merged commit 142e14b into main Nov 19, 2026
3 checks passed
@jespera
jespera deleted the release-binaries branch November 19, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant