fix(ci): use node:24-slim (glibc) instead of Alpine (musl)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

Native modules like @matrix-org/matrix-sdk-crypto-nodejs detect the
libc type at install time and download the appropriate binary.

Previously, CI used node:24-alpine (musl), so native modules downloaded
musl binaries. But production runs on Debian (glibc), causing runtime
crashes when the glibc binary is expected but not found.

This fix:
- Changes CI to node:24-slim (Debian/glibc)
- Adds python3/make/g++ for native module compilation

Fixes: matrix-sdk-crypto-nodejs-linux-x64-gnu MODULE_NOT_FOUND
This commit is contained in:
2026-03-01 19:40:09 -06:00
parent 51d46b2e4a
commit 2b7d340264

View File

@@ -29,9 +29,10 @@ when:
- ".trivyignore" - ".trivyignore"
variables: variables:
- &node_image "node:24-alpine" - &node_image "node:24-slim"
- &install_deps | - &install_deps |
corepack enable corepack enable
apt-get update && apt-get install -y --no-install-recommends python3 make g++
pnpm config set store-dir /root/.local/share/pnpm/store pnpm config set store-dir /root/.local/share/pnpm/store
pnpm install --frozen-lockfile pnpm install --frozen-lockfile
- &use_deps | - &use_deps |