wip: use patched node-gyp [skip ci]
This commit is contained in:
parent
dd84d4841a
commit
8de14b5c6a
2 changed files with 9 additions and 6 deletions
2
.github/workflows/stable-windows.yml
vendored
2
.github/workflows/stable-windows.yml
vendored
|
@ -33,7 +33,7 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
runs-on: windows-2019
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
|
|
@ -67,17 +67,16 @@ if [[ "${OS_NAME}" == "osx" ]]; then
|
|||
|
||||
yarn postinstall
|
||||
else
|
||||
if [[ "${npm_config_arch}" == "arm" ]]; then
|
||||
export npm_config_arm_version=7
|
||||
elif [[ "${npm_config_arch}" == "ia32" ]]; then
|
||||
if [[ "${OS_NAME}" == "windows" ]]; then
|
||||
# TODO: Should be replaced with upstream URL once https://github.com/nodejs/node-gyp/pull/2825
|
||||
# gets merged.
|
||||
rm -rf .build/node-gyp
|
||||
mkdir -p .build/node-gyp
|
||||
cd .build/node-gyp
|
||||
|
||||
git clone https://github.com/rzhao271/node-gyp.git .
|
||||
git checkout 102b347da0c92c29f9c67df22e864e70249cf086
|
||||
git clone https://github.com/nodejs/node-gyp.git .
|
||||
git checkout v9.4.0
|
||||
git am --3way --whitespace=fix ../../build/npm/gyp/patches/gyp_spectre_mitigation_support.patch
|
||||
npm install
|
||||
|
||||
npm_config_node_gyp=$( pwd )
|
||||
|
@ -86,6 +85,10 @@ else
|
|||
cd ../..
|
||||
fi
|
||||
|
||||
if [[ "${npm_config_arch}" == "arm" ]]; then
|
||||
export npm_config_arm_version=7
|
||||
fi
|
||||
|
||||
CHILD_CONCURRENCY=1 yarn --frozen-lockfile --network-timeout 180000
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue