Skip to content

Commit 5f3ef60

Browse files
committed
v21.6.2-1
1 parent 3cf54e0 commit 5f3ef60

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
podman build \
1919
--network host \
2020
--pull \
21-
--squash \
21+
--squash-all \
2222
--tag rust:alpine-mimalloc \
2323
.
2424
popd
@@ -38,6 +38,12 @@ jobs:
3838
rust:alpine-mimalloc \
3939
/workspace/build.sh
4040
41+
- name: test-node
42+
run: |
43+
tar xJf node-v*-linux-x64-static.tar.xz
44+
export PATH=$PWD/node-v*-linux-x64-static/bin:$PATH
45+
npm install @bjorn3/browser_wasi_shim
46+
4147
- name: upload-artifact
4248
uses: actions/upload-artifact@v4
4349
with:

build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ cd "$(mktemp -d)"
1616

1717
curl -f -L --retry 5 https://nodejs.org/dist/$node_ver/node-$node_ver.tar.gz | tar xz --strip-components=1
1818
patch -p1 -i /workspace/node-clang-lto.diff
19+
patch -p1 -i /workspace/use-etc-ssl-certs.patch
1920

2021
make -j"$(nproc)" binary \
2122
AR="llvm-ar" \
@@ -24,6 +25,4 @@ make -j"$(nproc)" binary \
2425
CONFIG_FLAGS="--enable-lto --experimental-enable-pointer-compression --fully-static --openssl-use-def-ca-store" \
2526
VARIATION="static"
2627

27-
out/Release/node -e 'console.log(6*7)' | grep -F 42
28-
2928
mv node-$node_ver-linux-x64-static.tar.xz /workspace

use-etc-ssl-certs.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/deps/openssl/openssl/include/internal/cryptlib.h b/deps/openssl/openssl/include/internal/cryptlib.h
2+
index 329ef62..9a8df64 100644
3+
--- a/deps/openssl/openssl/include/internal/cryptlib.h
4+
+++ b/deps/openssl/openssl/include/internal/cryptlib.h
5+
@@ -56,7 +56,7 @@ DEFINE_LHASH_OF(MEM);
6+
# ifndef OPENSSL_SYS_VMS
7+
# define X509_CERT_AREA OPENSSLDIR
8+
# define X509_CERT_DIR OPENSSLDIR "/certs"
9+
-# define X509_CERT_FILE OPENSSLDIR "/cert.pem"
10+
+# define X509_CERT_FILE "/etc/ssl/certs/ca-certificates.crt"
11+
# define X509_PRIVATE_DIR OPENSSLDIR "/private"
12+
# define CTLOG_FILE OPENSSLDIR "/ct_log_list.cnf"
13+
# else

0 commit comments

Comments
 (0)