Skip to content

Commit

Permalink
Fix-build (#101)
Browse files Browse the repository at this point in the history
* fix: fix static build of node

See: nodejs/node#41497 (comment)

* chore: make apt-get quiet
  • Loading branch information
chorrell authored Mar 22, 2022
1 parent 86fb79d commit 97d2f64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:

- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install g++ make python3
sudo apt-get -qq update
sudo apt-get -qq install g++ make python3
- name: ccache
uses: hendrikmuhs/ccache-action@v1
Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c -
tar -Jxf "node-v$NODE_VERSION.tar.xz"
cd "node-v$NODE_VERSION/"
./configure --fully-static --enable-static --without-npm --without-intl
# See: https://github.com/nodejs/node/issues/41497#issuecomment-1013137433
for i in out/tools/v8_gypfiles/gen-regexp-special-case.target.mk out/test_crypto_engine.target.mk; do
sed -i 's/\-static//g' $i || echo "nevermind";
done
make -j"$(getconf _NPROCESSORS_ONLN)"

0 comments on commit 97d2f64

Please sign in to comment.