Commit Graph

311 Commits

Author SHA1 Message Date
jiangcuo
392a52b75e fix loong64 crossbuild
Some checks failed
CI / test (20, ubuntu-latest) (push) Has been cancelled
CI / test (22, ubuntu-latest) (push) Has been cancelled
CI / test (24, ubuntu-latest) (push) Has been cancelled
Check Latest Node / check (20) (push) Has been cancelled
Check Latest Node / check (22) (push) Has been cancelled
Check Latest Node / check (24) (push) Has been cancelled
2026-02-04 21:19:23 +08:00
jiangcuo
236d01423e feat: add loong64 support
Some checks are pending
CI / test (20, ubuntu-latest) (push) Waiting to run
CI / test (22, ubuntu-latest) (push) Waiting to run
CI / test (24, ubuntu-latest) (push) Waiting to run
2026-01-13 11:48:32 +08:00
github-actions[bot]
f6ed5bfbda
fix: update expected shas (#136)
Update expected sha256sums for Node.js

3e7ddc77635f6225b8cba469b948752d16decdb94293b13ea6c9ce4792526d2e
node-v20.19.6-alpine-arm64
39f3a1fb1c83ecd3483e4335124bd9282dba239fcdf85430b7aea8fbfb8a1206
node-v20.19.6-alpine-x64
3f19fd984a558d2b3cc2f78fae2a3927b9d87a631ad454eeccf7ffd10e7c6f19
node-v20.19.6-linux-arm64
de270a8b37db68307fead80ddb75718c5599d4a96004d052588e24fac0a5e8f5
node-v20.19.6-linux-x64
049aefa14949d95ded5e3761b263171b1a5d430c1b6af10ab82ffbdfd945507a
node-v20.19.6-linuxstatic-arm64
96b66e0cb1bc3f53e4e652e4a1b4d1c51acec13d2c9136c7cb0f565d75ba60f5
node-v20.19.6-linuxstatic-armv7
ddc9c76e002e6e1768139099d27bf297bf564750187cef230e3113f773a97724
node-v20.19.6-linuxstatic-x64
4f50f1d0484cc69043abacd266de603773dc84a2d5ae0233453c701fed0d2241
node-v20.19.6-macos-arm64
9ed57a94c5dfc099fc262884b633fad61a7fba19b4b43ca2fd7a2ec0ffa5580d
node-v20.19.6-macos-x64
a0384fe007e78340cc863224dafd5a6de5c97b83ea8c764e1f31abfeaea07d03
node-v20.19.6-win-arm64
3203fce16436a5e78f77e927c2d1616404d567e20fd11d9f21cb41aa524978a7
node-v20.19.6-win-x64
7795a8932f8dfdebc3636cf83bfa69b7da2e4256dbfa99fe39a4c201a95d70f8
node-v24.12.0-alpine-arm64
d157149a911313dda8ceb6bc93096d531a850b0e6c1b76b2ac721e4f49413ce9
node-v24.12.0-alpine-x64
9a5816b9e3552bb5a914aeed16326a569e18dcc17f07ad8dd28b4a7fa67066a4
node-v24.12.0-linux-arm64
81a0b40e6d7d14d501e100a5a1f08eb3621c2323ee66c6bfd42f7bf7407b06dc
node-v24.12.0-linux-x64
fdb80c730160db3157923e8fef52df595aba597757affb9f7c0e11c5562f4ccd
node-v24.12.0-linuxstatic-arm64
4f9f3c2a1e3155f4203f8043e04412e7be90dc16ac7f78341083f9f1076b138c
node-v24.12.0-linuxstatic-x64
9dffdd09697f041369fec623e86dc866f00a4daaa9da84808f7352372339d9de
node-v24.12.0-macos-arm64
a7e48452945f37a831f96ab49f52d5049b989c68137cd398553787d3d1b14554
node-v24.12.0-macos-x64
9db6863e384aa746d1ae369c38aa11f3e46550240bb0abcbedb27d2a085c669d
node-v24.12.0-win-arm64
78eda417c8baf713d1790b8b42d8e6eec846101bb4249776d68069d64d240570
node-v24.12.0-win-x64

Co-authored-by: robertsLando <robertsLando@users.noreply.github.com>
2025-12-11 17:26:22 +01:00
github-actions[bot]
ba6149de39
fix: update expected shas (#128)
Update expected sha256sums for Node.js

Co-authored-by: robertsLando <robertsLando@users.noreply.github.com>
2025-10-29 15:06:25 +01:00
robertsLando
cda5244d2a
feat: enhance shas parsing logic in update workflow 2025-10-20 18:15:55 +02:00
robertsLando
358c7b3ddd
feat: update expected SHAs for Node.js versions 22.20.0 and 24.10.0 2025-10-15 17:45:47 +02:00
ranjith
d3d6a81ffc
feat: allow linuxstatic builds for ppc64 architecture (#118)
## Summary
Allow linuxstatic platform builds for ppc64 architecture by bypassing
the platform validation check.

## Changes
- Modified the platform validation logic in `lib/index.ts` to skip the
platform mismatch check when building for ppc64 architecture
- Added `&& arch !== 'ppc64'` condition to allow linuxstatic builds on
ppc64 without validation errors


## Impact
- Users can now build linuxstatic binaries for ppc64 architecture
without platform validation blocking the process
- No breaking changes to existing functionality
- Maintains existing platform validation for other architectures except
ppc64

## Use Case
This enables building static Linux binaries on ppc64 systems, which is
particularly useful for PowerPC environments that need statically linked
executables.

---------

Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
2025-10-06 10:54:59 +02:00
robertsLando
65f6deaf00
feat: add support for Node.js versions 20.19.5, 22.19.0, and 24.8.0 in expected SHAs 2025-09-26 17:07:20 +02:00
faulpeltz
a4bdb1649a
feat: node 24 support and attempt some Node 22 fixes (by @faulpeltz) (#107)
This PR adds Node24 support

**Node/V8 changes:**
- Move to new V8 syntax for some constructs (e.g. Cast<>)
- Tracked down two issues which caused the read-only snapshot to be
different across platforms:
- in `read-only-serializer:258` the "live" pointer gets overwritten by
the encoded slot (EncodedTagged).
If V8_COMPRESS_POINTERS is not enabled, EncodedTagged is 4 bytes, but
the live pointer is 8 bytes.
memcpy() only copies EncodeTagged leaving 4bytes of "garbage" (=previous
upper pointer half) which is semi-random per run - fixed this by
clearing the whole value first
- the CSA_HOLE_SECURITY_CHECK macro somehow leaves a string with a
platform-dependent filename in the readonly heap as a constant, replaced
that with "placeholder"
- add PKG_TRACE_READONLY_HEAP blocks for debugging further snapshot
issues

Those fixes partially fix the sourceless cross-build issues introduced
in Node 22 - For my test builds linux/linuxstatic/alpine/win on x64 are
now compatible again. The heap contents on macos builds and other arm64
is wildly different, not sure why. I don't think this kind of
compatibility is a goal for the V8 snapshot implementation in general.
(This affects Node SEA as well, but SEA always has the source to fall
back onto, which incurs a small performance hit)

**Build Changes:**

- Update linux/linuxcross build to use gcc 12 (required for Node 24)
- For aloine/linuxstatic: Node 24 doesn't build on the muslcc image used
previously, the image is unmaintained (although the toolchain builder
isn't, we could build our own image)
- Moved alpine/linuxstatic to native Alpine x64/arm64 toolchains, which
seems to work quite well
- Some minor upgrades to the Windows build, but had to enable `full-icu`
for now because the ICU code gen step crashes with `small-icu` on the GH
action build runners (not on my Windows test machine though)
- Moved the macos build to macos 14 which is now required for Node 24 -
x64 is now cross-built from arm64 because GH doesn't offer free macos14
x64 build workers
- Removed all builds for Node 18 and older
- 
**Notes:**
- Needs more testing, I did some basic testing for x64 builds as well as
macos/arm64
- I added a backport of the snapshot-determinism fixes to the latest
Node 22 patch
2025-09-17 14:50:36 +02:00
robertsLando
a4535d1882
feat: update expected SHAs for Node.js versions 20.19.4 and 22.17.1 2025-07-19 13:40:24 +02:00
Daniel Lando
6c56cdf098
fix: update ARMv7 compilation flags for improved floating-point support (#97)
Fixes #96
2025-07-18 08:21:22 +02:00
Marcello Bachechi
5baf78ede6
fix: improved error when downloading from GitHub fails 2025-07-17 08:37:51 +02:00
robertsLando
7275f0d28b
fix: update missing SHAS 2025-05-17 18:14:31 +02:00
robertsLando
b8ab3ba0b8
feat: add shas for node v20.19.1 and v22.15.1 2025-05-15 18:15:27 +02:00
robertsLando
5a7b2089be
feat: add v18.20.8 and v22.14.0 shas 2025-04-08 14:18:41 +02:00
robertsLando
7ed32e271d
feat: update shas for v18.20.6, v20.18.2 and v22.13.1 2025-01-30 18:09:02 +01:00
Daniel Lando
4f223e10b8
fix: update expected SHAs for Node versions (#64) 2024-12-28 16:39:53 +01:00
Eric Long
361ac29084
feat: add riscv64 and loong64 to known archs (#62) 2024-11-20 13:57:29 +01:00
Daniel Lando
02c538afaf fix: update expected shas 2024-11-04 15:36:42 +01:00
Daniel Lando
93bb9e9283 fix: wrong expected shas 2024-10-21 10:03:24 +02:00
github-actions[bot]
543aecccb4
fix: update expected shas (#56)
Co-authored-by: robertsLando <robertsLando@users.noreply.github.com>
2024-10-20 13:07:05 +02:00
Superchupu
253c0cc1ed
refactor: replace chalk and fs-extra (#53) 2024-10-17 06:56:51 +00:00
Daniel Lando
76bc9d0bbf
fix: skip sha check when providing PKG_NODE_PATH (#50) 2024-09-30 18:20:02 +02:00
Daniel Lando
01f2951484 fix: update expected shas 2024-09-20 08:41:27 +02:00
Daniel Lando
75e67b8214 fix: update expected shas 2024-09-17 08:33:21 +02:00
Daniel Lando
bc5d8a545c fix: update expected shas 2024-09-10 16:41:52 +02:00
Daniel Lando
9d496d0eb8 fix: update shas 2024-09-06 13:42:31 +02:00
Daniel Lando
d58bdcb96c fix: bump expected-shas.json 2024-02-16 15:23:32 +01:00
Daniel Lando
16392dbfc1 fix: add missing binaries shas 2024-02-06 09:18:02 +01:00
Daniel Lando
7099e0f006
fix: bump shas (#21) 2024-02-05 15:36:07 +01:00
Daniel Lando
98624e3a52 fix: update expected shas 2023-12-05 15:31:28 +01:00
Daniel Lando
fc07c46595 fix: update expected shas 2023-12-05 08:27:03 +01:00
G'lek Tarssza
31bbc32166
feat: support for latest NodeJS v20 (#11) 2023-12-04 09:09:51 +01:00
Daniel Lando
82cddb03df fix: update expected sha 2023-10-28 12:24:54 +02:00
Daniel Lando
4bfcccb9af
feat: support for custom PKG_NODE_PATH (#7) 2023-10-17 08:50:13 +02:00
Daniel Lando
62ffff231b
fix: update expected sha of node 18.18.2 and 16.20.2 (#6) 2023-10-17 08:21:19 +02:00
Gabriel Poulenard-Talbot
7a6232968d
fix: update to node 18.18.2 and node 16.20.2 (#4)
Co-authored-by: Gabriel P <gabriel.pt@planethoster.info>
2023-10-16 17:54:27 +02:00
Daniel Lando
056e7497a4 fix: update expected shas 2023-10-04 16:11:24 +02:00
Daniel Lando
dba60177fd fix: change repo name and fetch url 2023-10-03 15:57:31 +02:00
Gabriel Poulenard-Talbot
8fc4dcd84e
fix: update expected shas and bump to 3.5.2 (#292)
* update version in package.json

* bump to v3.5.2

* update shas

---------

Co-authored-by: Brad Parham <baparham@gmail.com>
Co-authored-by: Gabriel P <gabriel.pt@planethoster.info>
2023-03-28 21:06:03 +02:00
Brad Parham
eaab4f79af expected-shas.json: sort shas with new semver sort 2023-03-28 10:15:03 +02:00
Brad Parham
8015eb2f02 update sha sorting algorithm to coerce to semver sorting 2023-03-28 10:15:03 +02:00
Brad Parham
fbac6b2ddf ci: add more automation to release and asset creation 2023-03-28 10:15:03 +02:00
Brad Parham
2e9af3a5a8 expected: Refactor SHAs into sorted, machine-updatable json format 2023-03-28 10:15:03 +02:00
Brad Parham
009e09e5e6 ci: revive cross compile 2023-03-15 12:06:22 +01:00
Blaine Bublitz
7b2305001c
patches: add patch for node 19.6 (#274) 2023-02-14 08:11:41 +01:00
Brad Parham
9220fc167d
Add applyPatches script and some basic patch documentation (#251)
* build: add applyPatches script and docs

Adds a new package.json script to only apply patches as well as some
basic documentation on applying patches and building binaries

* README: add example of patch updates to readme

* tests: add simple patch application checker

* CI: always run lint in ci job matrix

* patches: fix 10.24.1 patch to apply with no offset
2023-01-27 20:09:06 -06:00
Jesse Chan
d67a7f4dc3 expected: add hashes of 14.20.0, 16.16.0 and 18.5.0 2022-07-11 12:50:24 -07:00
Jesse Chan
78034df375 expected: update hashes of 18.1.0, add hashes of 14.19.2 2022-05-05 15:33:11 -07:00
Jesse Chan
5011c53839 expected: update hashes of 14.19.1, add hashes of 16.15.0 and 18.1.0 2022-05-04 20:30:08 -07:00