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

Commit

Permalink
fix: update builder
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 1, 2023
1 parent fe6626a commit 13a234c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ darch=linux/amd64
if [[ "$ARCH" = "aarch64" ]]; then
farch=arm64
darch=linux/arm64
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu > /dev/null
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu > /dev/null 2>&1
# export CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ CC_host="gcc -m32" CXX_host="g++ -m32"
export DEVELOPMENT_SKIP_GETTING_ASSET=true
fi
Expand All @@ -29,11 +29,11 @@ npm install "re2@${TOOL_VERSION}" --save-exact --no-audit --no-fund --prefix .ca

if [[ "$ARCH" = "aarch64" ]]; then
echo "Rebuilding re2 v${VERSION} for Node v${NODE_VERSION} (${farch})"
#npm explore re2 --prefix .cache -- npm run rebuild --arch=${farch}
npm explore re2 --prefix .cache -- npm run rebuild --arch=${farch}
fi

echo "Testing re2 v${VERSION} for Node v${NODE_VERSION} (${farch})"
docker pull "node:${NODE_VERSION}" > /dev/null 2>&1
docker pull --platform ${darch} "node:${NODE_VERSION}" > /dev/null 2>&1
docker run --rm \
--platform ${darch} \
-v "$(pwd)/.cache:/cache" \
Expand Down

0 comments on commit 13a234c

Please sign in to comment.