From c04995607318704b25957992963da3ab2fa178e5 Mon Sep 17 00:00:00 2001 From: Chris Sherwood Date: Tue, 5 May 2026 10:18:23 -0700 Subject: [PATCH] fix(ci): install libzim-dev so native @openzim/libzim build can resolve headers The Build Admin workflow's `npm ci` step started failing on every PR opened since early May 2026 with: fatal error: zim/archive.h: No such file or directory #include @openzim/libzim is a native Node module that compiles against the system libzim C++ library via node-gyp. Builds were green through 2026-05-04 because the ubuntu-latest runner image included libzim-dev preinstalled. Sometime between 2026-05-04 and 2026-05-05 the runner image stopped shipping it, and every admin PR since has failed at the libzim compile step. Cuyua9's #733 (kiwix self-heal) and chriscrosstalk's #832 (vendor-aware AMD HSA override) both hit this at 14:16 UTC and 16:01 UTC on 2026-05-05. Fix: add an apt step that installs libzim-dev before `npm ci` runs. --- .github/workflows/build-admin-on-pr.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-admin-on-pr.yml b/.github/workflows/build-admin-on-pr.yml index 3afa65f..9234f66 100644 --- a/.github/workflows/build-admin-on-pr.yml +++ b/.github/workflows/build-admin-on-pr.yml @@ -16,6 +16,12 @@ jobs: node-version: '24' cache: 'npm' + - name: Install libzim system headers + # @openzim/libzim is a native Node module that compiles against the system + # libzim C++ library via node-gyp. The ubuntu-latest runner image stopped + # shipping libzim-dev preinstalled in early May 2026, breaking npm ci. + run: sudo apt-get update && sudo apt-get install -y libzim-dev + - name: Install dependencies run: npm ci working-directory: ./admin