Skip to content

fix(ci): use zig to cross-compile armv7 #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2022
Merged

fix(ci): use zig to cross-compile armv7 #176

merged 1 commit into from
Dec 12, 2022

Conversation

yisibl
Copy link
Member

@yisibl yisibl commented Dec 12, 2022

This solves the problem of CI errors:

Error: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.35' not found (required by /build/resvgjs.linux-arm-gnueabihf.node)

Due to the GitHub Actions Ubuntu upgrade from 20.04 to 22.04, the glibc version became 2.35. To maintain our compatibility, zig cross-compilation is now enabled to support older versions of glibc systems.

Distribution Glibc GCC
CentOS 7 2.17 4.8.5
Ubuntu 16.04 2.23 5.4.0
Ubuntu 18.04 2.27 7.5.0
Ubuntu 20.04 2.31 9.4.0
Ubuntu 22.04 2.35 11.2.0
Debian 10.12 2.28 8.3.0
Debian 11.4 2.31 10.2.1

@napi-rs/cli supports cross-compiling to armv7 using zig in @napi-rs/[email protected], so this dependency has been upgraded here as well.

@vercel
Copy link

vercel bot commented Dec 12, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
resvg-js ✅ Ready (Inspect) Visit Preview Dec 12, 2022 at 5:18AM (UTC)

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