Skip to content

Commit f5e4749

Browse files
committed
v23.3.0
1 parent 22e34cd commit f5e4749

File tree

5 files changed

+126
-144
lines changed

5 files changed

+126
-144
lines changed

.github/actions/darwin/action.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: build-darwin-node
2+
runs:
3+
using: composite
4+
steps:
5+
- name: build-node
6+
shell: bash
7+
run: |
8+
set -euo pipefail
9+
10+
node_ver=v23.3.0
11+
12+
pushd "$(mktemp -d)"
13+
14+
curl -f -L --retry 5 https://github.com/nodejs/node/archive/refs/tags/$node_ver.tar.gz | tar xz --strip-components=1
15+
patch -p1 -i $GITHUB_WORKSPACE/bump-v8-wasm-limits.diff
16+
17+
make -j$(curl -f -L --retry 5 https://gitlab.haskell.org/ghc/ghc/-/raw/master/mk/detect-cpu-count.sh | sh) binary CONFIG_FLAGS="--v8-disable-maglev"
18+
19+
mkdir $GITHUB_WORKSPACE/dist
20+
mv node-$node_ver-*.tar.xz $GITHUB_WORKSPACE/dist
21+
22+
popd
23+
24+
- name: upload-artifact
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: node-darwin-${{ matrix.arch }}
28+
path: dist/node-v*.tar.xz
29+
30+
- name: test-node
31+
shell: bash
32+
run: |
33+
pushd dist
34+
tar xJf node-v*.tar.xz --strip-components=1
35+
export PATH=$PWD/bin:$PATH
36+
npm install @bjorn3/browser_wasi_shim
37+
popd

.github/actions/linux/action.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build-linux-node
2+
runs:
3+
using: composite
4+
steps:
5+
- name: build-image
6+
shell: bash
7+
run: |
8+
pushd "$(mktemp -d)"
9+
curl -f -L --retry 5 https://github.com/tweag/rust-alpine-mimalloc/archive/refs/heads/master.tar.gz | tar xz --strip-components=1
10+
podman build \
11+
--network host \
12+
--pull \
13+
--squash-all \
14+
--tag rust:alpine-mimalloc \
15+
.
16+
popd
17+
18+
- name: build-node
19+
shell: bash
20+
run: |
21+
podman run \
22+
--init \
23+
--network host \
24+
--rm \
25+
--tmpfs /tmp:exec \
26+
--volume $PWD:/workspace \
27+
--workdir /workspace \
28+
rust:alpine-mimalloc \
29+
/workspace/build-alpine.sh
30+
31+
- name: upload-artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: node-linux-${{ matrix.arch }}
35+
path: dist/node-v*.tar.xz
36+
37+
- name: test-node
38+
shell: bash
39+
run: |
40+
pushd dist
41+
tar xJf node-v*.tar.xz --strip-components=1
42+
export PATH=$PWD/bin:$PATH
43+
npm install @bjorn3/browser_wasi_shim
44+
popd

.github/workflows/build.yml

Lines changed: 42 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -9,130 +9,67 @@ on:
99
jobs:
1010
x86_64-linux:
1111
name: x86_64-linux
12-
runs-on: ubuntu-24.04
12+
runs-on:
13+
- X64
14+
- Linux
15+
- podman
16+
strategy:
17+
matrix:
18+
include:
19+
- arch: x86_64
1320
steps:
14-
15-
- name: setup-podman
16-
uses: TerrorJack/setup-podman@master
17-
18-
- name: build-image
19-
run: |
20-
pushd "$(mktemp -d)"
21-
curl -f -L --retry 5 https://github.com/tweag/rust-alpine-mimalloc/archive/refs/heads/master.tar.gz | tar xz --strip-components=1
22-
podman build \
23-
--network host \
24-
--pull \
25-
--squash-all \
26-
--tag rust:alpine-mimalloc \
27-
.
28-
popd
29-
3021
- name: checkout
3122
uses: actions/checkout@v4
3223

33-
- name: build-node
34-
run: |
35-
podman run \
36-
--init \
37-
--network host \
38-
--rm \
39-
--tmpfs /tmp:exec \
40-
--volume $PWD:/workspace \
41-
--workdir /workspace \
42-
rust:alpine-mimalloc \
43-
/workspace/build-alpine.sh
44-
45-
- name: upload-artifact
46-
uses: actions/upload-artifact@v4
47-
with:
48-
name: node-linux-x86_64
49-
path: node-v*-linux-x64-static.tar.xz
50-
51-
- name: test-node
52-
run: |
53-
tar xJf node-v*-linux-x64-static.tar.xz
54-
export PATH=$PWD/node-v*-linux-x64-static/bin:$PATH
55-
npm install @bjorn3/browser_wasi_shim
24+
- name: build-linux-node
25+
uses: ./.github/actions/linux
5626

5727
aarch64-linux:
5828
name: aarch64-linux
59-
runs-on: ubuntu-24.04
29+
runs-on:
30+
- ARM64
31+
- Linux
32+
- podman
33+
strategy:
34+
matrix:
35+
include:
36+
- arch: aarch64
6037
steps:
61-
62-
- name: setup-podman
63-
uses: TerrorJack/setup-podman@master
64-
6538
- name: checkout
6639
uses: actions/checkout@v4
6740

68-
- name: build-node
69-
run: |
70-
podman run \
71-
--init \
72-
--network host \
73-
--rm \
74-
--tmpfs /tmp:exec \
75-
--volume $PWD:/workspace \
76-
--workdir /workspace \
77-
chimeralinux/chimera \
78-
/workspace/build-chimera.sh
79-
80-
- name: upload-artifact
81-
uses: actions/upload-artifact@v4
82-
with:
83-
name: node-linux-aarch64
84-
path: node-v*-linux-x64-static.tar.xz
85-
86-
- name: test-node
87-
run: |
88-
tar xJf node-v*-linux-x64-static.tar.xz
89-
export PATH=$PWD/node-v*-linux-x64-static/bin:$PATH
90-
npm install @bjorn3/browser_wasi_shim
41+
- name: build-linux-node
42+
uses: ./.github/actions/linux
9143

92-
darwin:
93-
name: ${{ matrix.arch }}-darwin
94-
runs-on: ${{ matrix.os }}
44+
aarch64-darwin:
45+
name: aarch64-darwin
46+
runs-on:
47+
- ARM64
48+
- macOS
9549
strategy:
9650
matrix:
9751
include:
9852
- arch: aarch64
99-
os: macos-15
100-
- arch: x86_64
101-
os: macos-15-large
10253
steps:
103-
104-
- name: setup-xcode
105-
run: |
106-
sudo xcode-select --switch /Applications/Xcode_16.1.app
107-
10854
- name: checkout
10955
uses: actions/checkout@v4
11056

111-
- name: build-node
112-
run: |
113-
set -euo pipefail
114-
115-
node_ver=v23.1.0
116-
117-
pushd "$(mktemp -d)"
118-
119-
curl -f -L --retry 5 https://github.com/nodejs/node/archive/refs/tags/$node_ver.tar.gz | tar xz --strip-components=1
120-
patch -p1 -i $GITHUB_WORKSPACE/bump-v8-wasm-limits.diff
121-
122-
make -j$(curl -f -L --retry 5 https://gitlab.haskell.org/ghc/ghc/-/raw/master/mk/detect-cpu-count.sh | sh) binary CONFIG_FLAGS="--v8-disable-maglev"
123-
124-
mv node-$node_ver-*.tar.xz $GITHUB_WORKSPACE
57+
- name: build-darwin-node
58+
uses: ./.github/actions/darwin
12559

126-
popd
127-
128-
- name: upload-artifact
129-
uses: actions/upload-artifact@v4
130-
with:
131-
name: node-darwin-${{ matrix.arch }}
132-
path: node-v*.tar.xz
60+
x86_64-darwin:
61+
needs: aarch64-darwin
62+
name: x86_64-darwin
63+
runs-on:
64+
- X64
65+
- macOS
66+
strategy:
67+
matrix:
68+
include:
69+
- arch: x86_64
70+
steps:
71+
- name: checkout
72+
uses: actions/checkout@v4
13373

134-
- name: test-node
135-
run: |
136-
tar xJf node-v*.tar.xz
137-
export PATH=$PWD/node-v*/bin:$PATH
138-
npm install @bjorn3/browser_wasi_shim
74+
- name: build-darwin-node
75+
uses: ./.github/actions/darwin

build-alpine.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eu
44

5-
node_ver=v23.1.0
5+
node_ver=v23.3.0
66

77
apk add \
88
linux-headers \
@@ -19,4 +19,5 @@ make -j"$(nproc)" binary \
1919
CONFIG_FLAGS="--fully-static --openssl-use-def-ca-store --v8-disable-maglev" \
2020
VARIATION="static"
2121

22-
mv node-$node_ver-linux-x64-static.tar.xz /workspace
22+
mkdir /workspace/dist
23+
mv node-v*.tar.xz /workspace/dist

build-chimera.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)