Skip to content

Commit 0490e46

Browse files
committed
fix(CI): rebuild sqlite3 from source on Linux runners
npm install downloads prebuilt node_sqlite3.node binaries compiled against GLIBC 2.38+. Force source compilation on Ubuntu runners so the native addon links against the runner's GLIBC (2.35 on ubuntu-22.04).
1 parent 0719ed8 commit 0490e46

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ jobs:
8787
node --version
8888
npm install
8989
90+
- name: Rebuild sqlite3 from source for GLIBC compatibility
91+
if: contains(matrix.runs-on, 'ubuntu')
92+
run: npm rebuild sqlite3 --build-from-source
93+
9094
- name: npm cache clear --force
9195
run: npm cache clear --force
9296

0 commit comments

Comments
 (0)