feat: add github workflows for publishing napi bindings#674
Merged
morgante merged 1 commit intobiomejs:mainfrom Mar 22, 2026
Merged
feat: add github workflows for publishing napi bindings#674morgante merged 1 commit intobiomejs:mainfrom
morgante merged 1 commit intobiomejs:mainfrom
Conversation
5885e2f to
c4a0009
Compare
Add a comprehensive CI/CD workflow (napi.yaml) for building, testing, and publishing native Node.js bindings via napi-rs across multiple platforms. Supported build targets: - x86_64-apple-darwin & aarch64-apple-darwin (+ universal binary) - x86_64-pc-windows-msvc & aarch64-pc-windows-msvc - x86_64-unknown-linux-gnu (Debian docker) - x86_64-unknown-linux-musl (Alpine docker, g++ for C++ stdlib headers) - aarch64-unknown-linux-gnu (Debian docker, cross-compiled with aarch64-linux-gnu-gcc/g++ and -mno-outline-atomics for QEMU compat) - aarch64-unknown-linux-musl (Alpine docker, cross-compiled with aarch64-linux-musl-gcc/g++ toolchain) - aarch64-linux-android - riscv64gc-unknown-linux-gnu (with g++-riscv64-linux-gnu) - FreeBSD x64 (via cross-platform-actions v0.25.0 on ubuntu-latest) Removed targets not supported by wasmtime/cranelift: - i686-pc-windows-msvc (32-bit x86) - armv7-linux-androideabi (32-bit ARM Android) - armv7-unknown-linux-gnueabihf (32-bit ARM Linux) - armv7-unknown-linux-musleabihf (32-bit ARM Linux musl) Test matrix: - Linux x64 gnu: node@18, node@20 with bun - Linux x64 musl: node@18, node@20 via oven/bun:alpine docker - Linux aarch64 gnu: node@18, node@20 via QEMU + node:bookworm - Linux aarch64 musl: via QEMU + oven/bun:alpine - macOS: universal binary on node@18, node@20 - Windows x64: node@18, node@20 Publishing: - Auto-publishes to npm on main branch when version changes - Supports manual publish via workflow_dispatch
bb80bd7 to
eed50c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #214 now that #617 is merged, this adds a workflow for publishing @getgrit/gritql and all the platform specific bindings.
NB I haven't tried this out, it's Claude's handiwork based on the scaffolded
CI.ymlfile injs/gritql, but I hope it's at least a start :)