File tree Expand file tree Collapse file tree 5 files changed +32
-15
lines changed Expand file tree Collapse file tree 5 files changed +32
-15
lines changed Original file line number Diff line number Diff line change 1- FROM ubuntu:noble AS build
1+ FROM redhat/ubi8 AS build
22ARG NODE_VERSION=20.19.3
33# Possible values: s390x, arm64, x64
44ARG NODE_ARCH
@@ -9,8 +9,9 @@ ENV PATH=$PATH:/nodejs/bin
99WORKDIR /zstd
1010COPY . .
1111
12- RUN apt-get -qq update
13- RUN apt-get -qq install -y python3 build-essential curl cmake
12+ RUN yum install -y python39 git make curl cmake gcc-toolset-14
13+ ENV PATH=/opt/rh/gcc-toolset-14/root/bin/:$PATH
14+
1415RUN python3 --version
1516
1617RUN npm run install-zstd
Original file line number Diff line number Diff line change 5151 ],
5252 'cflags!' : [ '-fno-exceptions' ],
5353 'cflags_cc!' : [ '-fno-exceptions' ],
54- 'cflags_cc' : ['-std=c++17' ],
54+ 'cflags_cc' : [],
5555 'xcode_settings' : {
5656 'GCC_ENABLE_CPP_EXCEPTIONS' : 'YES' ,
5757 'CLANG_CXX_LIBRARY' : 'libc++' ,
5858 'MACOSX_DEPLOYMENT_TARGET' : '11' ,
5959 'GCC_SYMBOLS_PRIVATE_EXTERN' : 'YES' , # -fvisibility=hidden
6060 'OTHER_CFLAGS' : [
61- '-std=c++17' ,
6261 '-stdlib=libc++'
6362 ],
6463 },
6564 'msvs_settings' : {
6665 'VCCLCompilerTool' : {
67- 'ExceptionHandling' : 1 ,
68- 'AdditionalOptions' : [
69- '-std:c++17'
70- ]
66+ 'ExceptionHandling' : 1
7167 }
7268 },
7369 }]
Original file line number Diff line number Diff line change 55
66# s390x, arm64, amd64 for ubuntu
77# amd64 or arm64v8 for alpine
8- LINUX_ARCH=arm64
8+ LINUX_ARCH=amd64
99
10- NODE_VERSION=20.19 .0
10+ NODE_VERSION=24.9 .0
1111
1212SCRIPT_DIR=$( dirname ${BASH_SOURCE:- $0 } )
1313PROJECT_DIR=$SCRIPT_DIR /..
@@ -33,10 +33,9 @@ build_and_test_glibc() {
3333 --build-arg=" NODE_ARCH=$NODE_ARCH " \
3434 --build-arg=" NODE_VERSION=$NODE_VERSION " \
3535 --build-arg=" RUN_TEST=true" \
36- --output type=local,dest=./prebuilds,platform-split=false \
37- -f ./.github/docker/Dockerfile.glibc \
36+ -f ./.github/docker/Dockerfile.glibc -t glibc-zstd-base \
3837 $PROJECT_DIR
3938}
4039
4140
42- build_and_test_musl
41+ build_and_test_glibc
Original file line number Diff line number Diff line change 3535 "install" : " prebuild-install --runtime napi || npm run clean-install" ,
3636 "clean-install" : " npm run install-zstd && npm run compile" ,
3737 "compile" : " node-gyp rebuild" ,
38- "test" : " mocha test/index.test .js" ,
38+ "test" : " mocha test/* .js" ,
3939 "install-zstd" : " bash etc/install-zstd.sh" ,
4040 "check:eslint" : " ESLINT_USE_FLAT_CONFIG=false eslint *ts lib/*.js test/*.js .*.json" ,
4141 "clang-format" : " clang-format --style=file:.clang-format --Werror -i addon/*" ,
Original file line number Diff line number Diff line change 1+ import { expect } from 'chai' ;
2+ import { execSync } from 'child_process' ;
3+
4+ describe ( 'glibc requirements' , function ( ) {
5+ let lddOutput ;
6+ beforeEach ( function ( ) {
7+ if ( process . platform !== 'linux' ) return this . skip ( ) ;
8+
9+ try {
10+ lddOutput = execSync ( 'ldd --version' , { encoding : 'utf8' } ) ;
11+ } catch {
12+ this . skip ( ) ;
13+ }
14+
15+ return ;
16+ } ) ;
17+
18+ it ( 'glibc is 2.28' , function ( ) {
19+ expect ( lddOutput ) . to . contain ( '2.28' ) ;
20+ } ) ;
21+ } ) ;
You can’t perform that action at this time.
0 commit comments