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

Commit

Permalink
feat: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 1, 2023
1 parent 13dcc7b commit 9041309
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install arm64 dependencies
if: matrix.arch == 'aarch64'
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
- name: build for ${{ matrix.node-version }} ${{ matrix.arch }}
run: ./bin/build.sh

Expand Down
4 changes: 1 addition & 3 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ if [[ "${DEBUG}" == "true" ]]; then
fi


TOOL_VERSION=${VERSION}
farch=x64
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 2>&1
export CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
# export DEVELOPMENT_SKIP_GETTING_ASSET=true
fi
Expand All @@ -25,7 +23,7 @@ fi
mkdir .cache

echo "Installing re2 v${VERSION} for Node v${NODE_VERSION} (${farch})"
npm install "re2@${TOOL_VERSION}" --save-exact --no-audit --no-fund --prefix .cache --no-progress --platform-arch=${farch}
npm install "re2@${VERSION}" --save-exact --no-audit --no-fund --prefix .cache --no-progress --platform-arch=${farch}

# if [[ "$ARCH" = "aarch64" ]]; then
#echo "Rebuilding re2 v${VERSION} for Node v${NODE_VERSION} (${farch})"
Expand Down

0 comments on commit 9041309

Please sign in to comment.