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 63
63
export PATH=$PWD/bin:$PATH
64
64
npm install @bjorn3/browser_wasi_shim
65
65
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 1
1
# ` node-static `
2
2
3
3
Highly 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 2
2
3
3
set -eu
4
4
5
- node_ver=v23.11 .0
5
+ node_ver=v24.2 .0
6
6
7
7
apk add \
8
8
clang \
@@ -14,15 +14,13 @@ apk add \
14
14
cd " $( mktemp -d) "
15
15
16
16
curl -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
18
17
patch -p1 -i /workspace/lto.diff
19
- patch -p1 -i /workspace/use-etc-ssl-certs.diff
20
18
21
19
make -j" $( nproc) " binary \
22
20
AR=llvm-ar \
23
21
CC=clang \
24
22
CXX=clang++ \
25
- CONFIG_FLAGS=" --enable-lto --fully-static --openssl-use-def-ca-store " \
23
+ CONFIG_FLAGS=" --enable-lto --fully-static" \
26
24
LDFLAGS=-Wl,-z,stack-size=8388608 \
27
25
VARIATION=" static"
28
26
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments