Commit Graph

278 Commits

Author SHA1 Message Date
Jesse Chan
748f67a0fe build: workaround win-arm64 cross compilation issue with small-icu 2021-04-11 23:59:25 +08:00
Jesse Chan
97c892758f build: defaults to small ICU
Bug: #164
2021-04-11 23:59:25 +08:00
Jesse Chan
0cc2634d4f
build: tweak Node configure flags (#160)
* build: consolidate common configure args

* build: re-enable LTCG for Windows

* build: enable LTO for Linux

* build: disable DTrace and bundled npm

* build: strip debug symbols from executable
2021-04-08 22:39:28 +08:00
Jesse Chan
52a1754e42
build: hash and create ".sha256sum" for binary built (#157) 2021-04-07 22:09:21 +08:00
Jesse Chan
549db84226
CI: output to dist/ with "node-*" prefix (#156)
* Add "--output" CLI argument

* CI: output to dist/ with "node-*" prefix

* requests: remove tempFile when download failed
2021-04-07 17:59:50 +08:00
Jesse Chan
b47c260d38
Cleanup, remove unused dependencies (#154)
* places: simplify and remove dependency on "expand-template"

* Remove dependency on "unique-temp-dir"

* Remove unused dependencies
2021-04-06 16:34:39 +08:00
Jesse Chan
532fb10d91
Allow to override build path with PKG_BUILD_PATH (#152)
To workaround a path problem with older Node versions and some
Windows environments.
2021-04-02 20:01:47 +08:00
Jesse Chan
d7f74907ad
Allow cross compiling (#150) 2021-04-02 19:05:18 +08:00
Jesse Chan
cc13355f33
Allow to run basic binary verification with "--test" (#147) 2021-03-31 11:09:10 -05:00
Jesse Chan
521517902b
Migrate from requests to axios (#146) 2021-03-31 10:57:21 -05:00
Jesse Chan
ba011e4474
Improved CLI interface. (#145)
$ pkg-fetch -h
Options:
  -n, --node-range                                  [string] [default: "latest"]
  -p, --platform                                     [string] [default: "linux"]
  -a, --arch                                           [string] [default: "x64"]
  -f, --force-fetch                                                    [boolean]
  -b, --force-build                                                    [boolean]
  -v, --version      Show version number                               [boolean]
  -h, --help         Show help                                         [boolean]
2021-03-31 09:27:28 -05:00
Jesse Chan
e314198e53
[BREAKING] Remove upload and release functions to prepare for CI step. (#144) 2021-03-31 09:03:14 -05:00
Jesse Chan
cf794f6881
Drop fancy progress bar and use inherent stdio for child processes (#143)
Progress bar is fancy but not really useful. In most cases, we
want outputs of commands for easier development and debugging.

This change is not visible to users of `pkg` unless they choose to
compile binaries.
2021-03-31 20:23:14 +08:00
Andrew Lisowski
6dd43cfafd
pkg-fetch: migrate to TypeScript (#139) 2021-03-29 12:46:10 +08:00
Andrew Lisowski
f7a75173f9
Run prettier, convert to standard eslint, add CI (#138)
* Run prettier and convert to standard eslint

* Add CI, fix broken test

* Update package.json

Co-authored-by: Lee Robinson <me@leerob.io>

* switch to single quote

* remove tests for now

Co-authored-by: Lee Robinson <me@leerob.io>
2021-03-26 16:51:31 -07:00
Daniel Lando
93431471c6
feat: Set MAKE_JOB_COUNT to available CPU length by default. (#133) 2021-03-26 09:51:28 -05:00
Lee Robinson
af05f0f2cc
Fix lint issues before release. (#120) 2021-03-18 17:15:58 -05:00
Daniel Lando
b1880a0c95
Add PKG_IGNORE_TAG env var (#67) 2021-03-02 09:38:37 -06:00
Laurin Quast
170c3adff9
Allow configuring number of processes used for compiling. (#103) 2021-03-01 09:37:57 -06:00
Paulo Castro
eef90fed0f
Improve ARM architecture detection (#106) 2021-03-01 09:33:43 -06:00
IgorKlopov
08a6f3bb48 add abi for node14 2020-05-10 22:54:25 +03:00
Klaus Landsdorf
79dd09e9da
missing abi entries (#88)
* fix: cloned too much from node repo

* chore: add missed bare

* fix: issue #46 nodeVersion on clone with less branches

* fix: typo R removed

* fix: remove and edited files as expected for the pull request

* test: set test to new git pull command results

* feat(build): knowing node 10 to 13
2020-05-10 22:49:08 +03:00
Timothy Pearson
cdac19c4eb
Add ppc64 support (#91) 2020-05-10 20:44:12 +03:00
IgorKlopov
b14dd0ecf3 add v14.0.0. fixes #89 2020-04-26 19:14:38 +03:00
IgorKlopov
b7e7f1c183 fixes to gitClone and verify.js 2020-04-05 18:18:59 +03:00
Klaus Landsdorf
edabcb937a
version of nodejs on clone git repo (#84)
* fix: cloned too much from node repo

* chore: add missed bare

* fix: issue #46 nodeVersion on clone with less branches

* fix: typo R removed

* fix: remove and edited files as expected for the pull request

* test: set test to new git pull command results
2020-04-05 18:15:38 +03:00
Igor Klopov
1b9cd7884a preserve compilation of x86 binaries for windows 2019-05-09 21:47:55 +03:00
Igor Klopov
ff942655fa drop compilation of x86 binaries 2019-05-09 05:13:52 +03:00
Igor Klopov
00c3a742ce fix node.exe placement for node 12 2019-05-07 00:57:29 +03:00
Igor Klopov
b5a1eec53d there is no noperfctr in node 12. also nosign is redundant 2019-05-07 00:56:56 +03:00
Igor Klopov
2665896bbb account modules=72 in verify.js 2019-05-06 20:09:15 +03:00
Igor Klopov
8a76030418 upgrade dependencies 2019-04-16 13:53:23 +03:00
Igor Klopov
0a9a21debc
node 10.15.3 (#62)
* support of node 10.15.3

* fix semver sorting
2019-04-16 13:26:55 +03:00
Cnaik
e92d324624 Adding support for s390x Architecture (#56)
* Update build.js

* Update system.js
2019-04-16 04:07:06 +03:00
Daniel Cohen Gindi
a3c763c8c5 Avoid leaking more info about node.js into ETW (#61)
* Avoid leaking more info about node.js into ETW

* Avoid leaking node.js information into perfctr
2019-04-16 04:05:57 +03:00
Igor Klopov
768bdd9ac4 adjust for updated v8 in 8.11 2018-06-18 12:26:09 +03:00
Igor Klopov
74347211e6 added symmetric assert (that will probably run first) 2018-06-18 01:06:54 +03:00
Igor Klopov
07202c248b Revert "add --depth=1 to git clone command (#30)"
This reverts commit 99d9460a05.
2018-06-17 16:39:19 +03:00
Qix
99d9460a05 add --depth=1 to git clone command (#30) 2018-06-17 16:23:55 +03:00
Igor Klopov
31ecf102a7 don't upload already uploaded assets 2018-06-17 15:26:49 +03:00
Igor Klopov
026efea4ce support node 10 2018-05-14 18:28:31 -07:00
Josh Junon
d782e49d4e check ldd stderr instead of stdout 2017-11-09 06:13:34 -08:00
Igor Klopov
d9d1fe0c5a fix detecting alpine. thanks to @Qix- 2017-11-09 16:17:08 +03:00
Igor Klopov
12bf8df688 consider modules 59 as node9 2017-11-03 02:07:50 +03:00
Igor Klopov
cd1f463674 fallback->PKG_INVOKE_NODEJS 2017-11-03 01:06:11 +03:00
Igor Klopov
686ae2c762 --pkg-fallback -> PKG_EXECPATH 2017-10-31 16:57:14 +03:00
Igor Klopov
c3034ae929 remove lowPriority 2017-10-09 18:08:01 +03:00
Igor Klopov
fc5d94c199 fix verify.js. analyze v8 version for node8 2017-08-14 16:23:32 +03:00
Igor Klopov
2d8febfb0c process.env.PKG_CACHE_PATH. fixes zeit/pkg#173 and zeit/pkg#174 2017-07-30 16:40:02 +03:00
Igor Klopov
2854aa76b0 fix linting 2017-07-24 20:16:43 +03:00
Igor Klopov
bc21add820 list of available node versions + stars for lowPriority 2017-07-24 20:14:45 +03:00
Igor Klopov
43970f1109 fix 90% complete ux on git cloning 2017-07-24 19:35:46 +03:00
Igor Klopov
bb15ed6e88 v7.10.1, v6.11.1 and v4.8.4 as lowPriority 2017-07-24 19:34:15 +03:00
Igor Klopov
4163432e7d better handling of (nodeRange === 'latest') 2017-07-24 13:55:18 +03:00
Igor Klopov
799a9b4883 first try with lowPriority, then without them 2017-07-24 13:40:12 +03:00
Igor Klopov
d18e6136b4 node.v8.2.1.patch 2017-07-24 01:18:59 +03:00
Igor Klopov
6b8f4ea934 filter out those marked 'onlyBuild' 2017-07-23 22:54:44 +03:00
Igor Klopov
6a7394e071 addresses https://github.com/zeit/pkg/issues/145#issuecomment-311294287 2017-06-28 00:59:41 +03:00
Igor Klopov
7d664f31c9 support compilation on arm64 host. fixes https://github.com/zeit/pkg/issues/146 2017-06-26 17:56:57 +03:00
Igor Klopov
dbd334ac15 'm57' alias for node8 2017-06-02 08:04:38 +03:00
Igor Klopov
f5a452bc24 --pkg-fallback for verify.js 2017-06-01 23:23:23 +03:00
Igor Klopov
aab4d851cf seems that PKG_FETCH_ONLY_NODE7 env var is not used 2017-06-01 21:58:54 +03:00
Igor Klopov
5584f62775 verify.js: update to node8 2017-05-31 20:42:41 +03:00
Igor Klopov
2bccefd023 even better name in path 2017-05-27 23:16:16 +03:00
Igor Klopov
af0b8ed657 simplify path for precompiled binaries 2017-05-27 23:13:12 +03:00
Igor Klopov
90b299aece fix for travis failure at b0dda229c9
according to https://github.com/browserstack/browserstack-local-nodejs/issues/19#issuecomment-256040404
2017-05-18 10:20:23 +03:00
Igor Klopov
439161f434 fs-promise -> fs-extra 2017-05-14 20:28:08 +03:00
Igor Klopov
d95b149861 add 'mac' as an alternative name for 'macos' 2017-05-01 14:06:31 -07:00
Igor Klopov
67c4a7b082 fixes https://github.com/zeit/pkg/issues/39 2017-05-01 14:03:28 -07:00
Igor Klopov
22111e00bb fix lint 2017-04-27 19:16:59 -07:00
Igor Klopov
8beb8b29fe correct percentage based on total/transferred 2017-04-27 19:15:38 -07:00
Igor Klopov
fe0cbc7aa5 align progress bars 2017-04-27 18:24:18 -07:00
Igor Klopov
1c71e4a7d1 moving 'Fetching base binaries' up to pkg 2017-04-27 18:17:05 -07:00
Igor Klopov
82255d5cb9 introducing 'dryRun' 2017-04-27 18:15:38 -07:00
Igor Klopov
69f6b5742d minor style to prepare for next commit 2017-04-27 17:31:05 -07:00
Igor Klopov
44e6573d57 isValidNodeRange with a check for /^node/ 2017-03-15 21:56:48 +03:00
Igor Klopov
4cfa4e0443 few more platform names to assist manual run 2017-03-14 15:47:29 +03:00
Igor Klopov
b0f999aa87 let bin.js be executable 2017-02-23 19:55:30 +03:00
Igor Klopov
67aee7113f run paxctl command in alpine build 2017-01-20 15:10:35 +03:00
Igor Klopov
e2951284d4 since platform is exported immediately, bypass 'undefined' state 2017-01-20 12:49:28 +03:00
Igor Klopov
d4b89a9511 --without-snapshot for alpine builds as a temporary workaround 2017-01-20 10:22:27 +03:00
Igor Klopov
9f5b975965 use hostPlatform in build.js instead of process.platform 2017-01-20 10:11:49 +03:00
Igor Klopov
895a9302a0 isAlpine, detectAlpine, knownPlatforms 2017-01-20 09:41:38 +03:00
Igor Klopov
070027aa71 modules51 = node7 2017-01-20 09:15:31 +03:00
Igor Klopov
71df9d20e8 uploadMany, downloadMany 2017-01-04 14:33:53 +03:00
Igor Klopov
1475cc773d Cloud class from cloud.js to reuse it for another owner/repo 2017-01-04 14:21:15 +03:00
Igor Klopov
d78acc18a5 indent up again in cloud.js 2017-01-04 14:14:54 +03:00
Igor Klopov
44e0c3812f GitHub class from github.js to reuse it for another owner/repo 2017-01-04 13:24:40 +03:00
Igor Klopov
def2dba76d indent up 2017-01-04 13:06:44 +03:00
Igor Klopov
5ce8143120 divide buildbots to pre-node7 and post-node7 2016-11-15 12:09:03 +03:00
Igor Klopov
16b44639bb add modules 51 to verify.js 2016-11-13 16:59:16 +03:00
Igor Klopov
f2d07fe810 show modules version 2016-11-13 16:58:18 +03:00
igor
9637378b03 tuning dontBuild 2016-10-08 22:27:11 +03:00
Igor Klopov
2466336ae9 fix boolean flags for command line 2016-10-07 20:43:49 +03:00
Igor Klopov
5331250087 enable compilation of node 7 for arm, but disable inspector 2016-10-07 20:23:27 +03:00
igorklopov
24548fd4e6 update tests 2016-10-06 12:57:59 +03:00
Igor Klopov
72f64d3c85 disable v8_inspector for node 6 2016-10-06 05:51:07 +00:00
Igor Klopov
dbb517bd60 one more fix for verify.js for arm 2016-10-05 18:48:55 +03:00
Igor Klopov
a62be08882 uploading fails if it takes more than 30 seconds. fixing it 2016-10-05 01:17:14 +03:00
Igor Klopov
b4fb1ad223 fixes to verify.js for arm 2016-10-04 14:03:29 +00:00