build: speed up source tarball creation
Avoid building the node binary when building the source tarball. We need a node binary to build the docs, but it doesn't have to be one we build from scratch and can reuse any available node binary.
Skip building the xz compressed tarball in the build-tarball workflow as we only use the gzip compressed tarball in the subsequent build jobs.
This significantly cuts the time for the "build-tarball" job from the "Build from tarball" workflow from ~50mins to ~2mins.
Our release CI shouldn't be affected as the job the builds the source
tarball builds the binary tarball first so will always have a built node
binary to run.
Here's a test build on the release CI: https://ci-release.nodejs.org/job/iojs+release/6206/ Download: https://nodejs.org/download/test/v15.0.0-test20200724221167a148/
cc @nodejs/build-files
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines