40
40
- ./tmp/chocolatey/
41
41
# `jest` cache is configured in jest.config.js
42
42
- ./tmp/jest/
43
- # `node-gyp` cache used by windows and macos
43
+ # `npm_config_devdir` cache for ` node-gyp` headers and libraries used by windows and macos
44
44
- ./tmp/node-gyp
45
45
46
46
stages :
@@ -166,7 +166,7 @@ build:windows:
166
166
before_script :
167
167
- mkdir -Force "$CI_PROJECT_DIR/tmp"
168
168
script :
169
- - .\ scripts\ choco-install.ps1
169
+ - ./ scripts/ choco-install.ps1
170
170
- refreshenv
171
171
- npm install --ignore-scripts
172
172
- $env:Path = "$(npm bin);" + $env:Path
@@ -192,22 +192,14 @@ build:macos:
192
192
- shared-macos-amd64
193
193
image : macos-11-xcode-12
194
194
variables :
195
- HOMEBREW_NO_INSTALL_UPGRADE : " true"
196
- HOMEBREW_NO_INSTALL_CLEANUP : " true"
197
- HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK : " true"
198
- HOMEBREW_NO_AUTO_UPDATE : " true"
199
195
# Location node-gyp installed headers and static libraries
200
196
npm_config_devdir : " ${CI_PROJECT_DIR}/tmp/node-gyp"
201
197
# Produce universal binary
202
198
npm_config_arch : ' x64+arm64'
203
- before_script :
199
+ script :
204
200
- eval "$(brew shellenv)"
205
- - brew install node@16
206
- - brew link --overwrite node@16
207
-
208
- -
brew link --overwrite [email protected]
201
+ - ./scripts/brew-install.sh
209
202
- hash -r
210
- script :
211
203
- npm install --ignore-scripts
212
204
- export PATH="$(npm bin):$PATH"
213
205
- npm run build --verbose
0 commit comments