Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
test: run tests on bullseye
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 4, 2023
1 parent 13e71a6 commit e075a66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fi

farch=x64
darch=linux/amd64
# glibc v2.31 (like Ubuntu 20.04)
nodeDist=bullseye
# TODO: set mirror

if [[ "$ARCH" = "aarch64" ]]; then
Expand All @@ -23,12 +25,12 @@ echo "Installing re2 v${VERSION} for Node v${NODE_VERSION} (${farch})"
npm install "re2@${VERSION}" --save-exact --no-audit --no-fund --prefix .cache --no-progress --platform-arch=${farch} --arch=${farch}

echo "Testing re2 v${VERSION} for Node v${NODE_VERSION} (${farch})"
docker pull --platform ${darch} "node:${NODE_VERSION}" > /dev/null 2>&1
docker pull --platform ${darch} "node:${NODE_VERSION}-${nodeDist}" > /dev/null 2>&1
docker run --rm \
--platform ${darch} \
-v "$(pwd)/.cache:/cache" \
-w /cache \
"node:${NODE_VERSION}" \
"node:${NODE_VERSION}-${nodeDist}" \
node -e "new require('re2')('.*').exec('test') && console.log(process.arch)"

echo "Compressing re2 v${VERSION} for Node v${NODE_VERSION} (${farch})"
Expand Down

0 comments on commit e075a66

Please sign in to comment.