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
2
2
ARG NODE_VERSION=20.19.3
3
3
# Possible values: s390x, arm64, x64
4
4
ARG NODE_ARCH
@@ -9,8 +9,9 @@ ENV PATH=$PATH:/nodejs/bin
9
9
WORKDIR /zstd
10
10
COPY . .
11
11
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
+
14
15
RUN python3 --version
15
16
16
17
RUN npm run install-zstd
Original file line number Diff line number Diff line change 51
51
],
52
52
'cflags!' : [ '-fno-exceptions' ],
53
53
'cflags_cc!' : [ '-fno-exceptions' ],
54
- 'cflags_cc' : ['-std=c++17' ],
54
+ 'cflags_cc' : [],
55
55
'xcode_settings' : {
56
56
'GCC_ENABLE_CPP_EXCEPTIONS' : 'YES' ,
57
57
'CLANG_CXX_LIBRARY' : 'libc++' ,
58
58
'MACOSX_DEPLOYMENT_TARGET' : '11' ,
59
59
'GCC_SYMBOLS_PRIVATE_EXTERN' : 'YES' , # -fvisibility=hidden
60
60
'OTHER_CFLAGS' : [
61
- '-std=c++17' ,
62
61
'-stdlib=libc++'
63
62
],
64
63
},
65
64
'msvs_settings' : {
66
65
'VCCLCompilerTool' : {
67
- 'ExceptionHandling' : 1 ,
68
- 'AdditionalOptions' : [
69
- '-std:c++17'
70
- ]
66
+ 'ExceptionHandling' : 1
71
67
}
72
68
},
73
69
}]
Original file line number Diff line number Diff line change 5
5
6
6
# s390x, arm64, amd64 for ubuntu
7
7
# amd64 or arm64v8 for alpine
8
- LINUX_ARCH=arm64
8
+ LINUX_ARCH=amd64
9
9
10
- NODE_VERSION=20.19 .0
10
+ NODE_VERSION=24.9 .0
11
11
12
12
SCRIPT_DIR=$( dirname ${BASH_SOURCE:- $0 } )
13
13
PROJECT_DIR=$SCRIPT_DIR /..
@@ -33,10 +33,9 @@ build_and_test_glibc() {
33
33
--build-arg=" NODE_ARCH=$NODE_ARCH " \
34
34
--build-arg=" NODE_VERSION=$NODE_VERSION " \
35
35
--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 \
38
37
$PROJECT_DIR
39
38
}
40
39
41
40
42
- build_and_test_musl
41
+ build_and_test_glibc
Original file line number Diff line number Diff line change 35
35
"install" : " prebuild-install --runtime napi || npm run clean-install" ,
36
36
"clean-install" : " npm run install-zstd && npm run compile" ,
37
37
"compile" : " node-gyp rebuild" ,
38
- "test" : " mocha test/index.test .js" ,
38
+ "test" : " mocha test/* .js" ,
39
39
"install-zstd" : " bash etc/install-zstd.sh" ,
40
40
"check:eslint" : " ESLINT_USE_FLAT_CONFIG=false eslint *ts lib/*.js test/*.js .*.json" ,
41
41
"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