You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add musl (Alpine Linux) support for native addon
Implements runtime libc detection and CI builds for both glibc and musl
variants, enabling native addon usage on Alpine Linux.
Changes:
- Add linux-x64-musl to build matrix with node:22-alpine container
- Implement runtime libc detection using detect-libc package
- Map FFmpeg asset downloads (linux-x64-musl → ffmpeg-linux-x64.tar.gz)
- Update installBuildTools to detect Alpine and use apk package manager
- Add musl platform package to optionalDependencies
- Update documentation to reflect musl support
Fixes identified in code review:
- Add container reference at job level for Alpine builds to work
- Use node:22-alpine instead of alpine:latest for pre-installed Node.js
- Fix import naming (GLIBC → detectLibc) per Google TS Style Guide
- Correct FFmpeg asset mapping for musl builds
Platform support:
- macOS x64/arm64 (unchanged)
- Linux x64 glibc (Ubuntu, Debian, RHEL)
- Linux x64 musl (Alpine, Void Linux) - NEW
User experience: Automatic libc detection, no manual package selection needed.
0 commit comments