File tree Expand file tree Collapse file tree 5 files changed +4
-84
lines changed Expand file tree Collapse file tree 5 files changed +4
-84
lines changed Original file line number Diff line number Diff line change 6363 export PATH=$PWD/bin:$PATH
6464 npm install @bjorn3/browser_wasi_shim
6565 popd
66-
67- darwin :
68- name : ${{ matrix.arch }}-darwin
69- runs-on :
70- - ${{ matrix.runner_tag }}
71- - macOS
72- strategy :
73- matrix :
74- include :
75- - arch : aarch64
76- runner_tag : ARM64
77- - arch : x86_64
78- runner_tag : X64
79- steps :
80- - name : checkout
81- uses : actions/checkout@v4
82-
83- - name : build-node
84- run : |
85- set -euo pipefail
86-
87- node_ver=v23.11.0
88-
89- pushd "$(mktemp -d)"
90-
91- curl -f -L --retry 5 https://github.com/nodejs/node/archive/refs/tags/$node_ver.tar.gz | tar xz --strip-components=1
92- patch -p1 -i $GITHUB_WORKSPACE/bump-v8-wasm-limits.diff
93- patch -p1 -i $GITHUB_WORKSPACE/lto.diff
94-
95- make -j$(curl -f -L --retry 5 https://gitlab.haskell.org/ghc/ghc/-/raw/master/mk/detect-cpu-count.sh | sh) binary CONFIG_FLAGS="--enable-lto"
96-
97- mkdir $GITHUB_WORKSPACE/dist
98- mv node-$node_ver-*.tar.xz $GITHUB_WORKSPACE/dist
99-
100- popd
101-
102- - name : upload-artifact
103- uses : actions/upload-artifact@v4
104- with :
105- name : node-darwin-${{ matrix.arch }}
106- path : dist/node-v*.tar.xz
107-
108- - name : test-node
109- run : |
110- pushd dist
111- tar xJf node-v*.tar.xz --strip-components=1
112- export PATH=$PWD/bin:$PATH
113- npm install @bjorn3/browser_wasi_shim
114- popd
Original file line number Diff line number Diff line change 11# ` node-static `
22
33Highly opinionated nodejs build, fully statically linked with
4- musl/mimalloc on linux, with increased V8 wasm limits and LLVM
5- ThinLTO. Don't use it in your own project unless you know what you're
6- doing.
4+ musl/mimalloc on linux, with LLVM ThinLTO. Don't use it in your own
5+ project unless you know what you're doing.
Original file line number Diff line number Diff line change 22
33set -eu
44
5- node_ver=v23.11 .0
5+ node_ver=v24.2 .0
66
77apk add \
88 clang \
@@ -14,15 +14,13 @@ apk add \
1414cd " $( mktemp -d) "
1515
1616curl -f -L --retry 5 https://nodejs.org/dist/$node_ver /node-$node_ver .tar.xz | tar xJ --strip-components=1
17- patch -p1 -i /workspace/bump-v8-wasm-limits.diff
1817patch -p1 -i /workspace/lto.diff
19- patch -p1 -i /workspace/use-etc-ssl-certs.diff
2018
2119make -j" $( nproc) " binary \
2220 AR=llvm-ar \
2321 CC=clang \
2422 CXX=clang++ \
25- CONFIG_FLAGS=" --enable-lto --fully-static --openssl-use-def-ca-store " \
23+ CONFIG_FLAGS=" --enable-lto --fully-static" \
2624 LDFLAGS=-Wl,-z,stack-size=8388608 \
2725 VARIATION=" static"
2826
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments