diff --git a/.github/docker/Dockerfile.glibc b/.github/docker/Dockerfile.glibc new file mode 100644 index 0000000..d2243a4 --- /dev/null +++ b/.github/docker/Dockerfile.glibc @@ -0,0 +1,19 @@ +ARG UBUNTU_VERSION=bionic +FROM ubuntu:${UBUNTU_VERSION} AS build + +ARG NODE_VERSION=16.20.1 +# Possible values: s390x, arm64, x64 +ARG NODE_ARCH +ADD https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.gz / +RUN mkdir -p /nodejs && tar -xzf /node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.gz --strip-components=1 -C /nodejs +ENV PATH=$PATH:/nodejs/bin + +WORKDIR /tmp +COPY . . + +RUN apt-get -qq update && apt-get -qq install -y python3 build-essential && ldd --version + +RUN bash etc/install-zstd.sh && npm install && npm i @mongodb-js/zstd + +ARG RUN_TEST +RUN [ -n "$RUN_TEST" ] && npm run test || echo 'skipping testing!' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 814801e..42f4a47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: strategy: matrix: linux_arch: [s390x, arm64, amd64] - node: [16.x, 18.x, 20.x, 22.x] + node: [16.20.1, 18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4