Skip to content

Commit aec82c3

Browse files
committed
Added CI step to print out glibc compatibility
refs #1580 refs #1578 - it's difficult to know what version of glibc CI is building binaries compatible with, so this commit adds a step to print out the linked version after building
1 parent 8b2cdd9 commit aec82c3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ jobs:
6060
- name: Build binaries
6161
run: yarn node-pre-gyp build
6262

63+
- name: Print glibc linking
64+
if: contains(matrix.os, 'ubuntu')
65+
run: |
66+
ldd lib/binding/*/node_sqlite3.node
67+
echo "---"
68+
nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" | c++filt || true
69+
6370
- name: Run tests
6471
run: yarn test
6572

tools/BinaryBuilder.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ RUN cd node_modules/\@mapbox/node-pre-gyp \
1919

2020
RUN npx node-pre-gyp configure
2121
RUN npx node-pre-gyp build
22+
23+
RUN if [ "$VARIANT" != "alpine" ] then; ldd lib/binding/*/node_sqlite3.node; nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" | c++filt || true ; fi
24+
2225
RUN npm run test
2326
RUN npx node-pre-gyp package
2427

0 commit comments

Comments
 (0)