4040 - ./tmp/chocolatey/
4141 # `jest` cache is configured in jest.config.js
4242 - ./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
4444 - ./tmp/node-gyp
4545
4646stages :
@@ -166,7 +166,7 @@ build:windows:
166166 before_script :
167167 - mkdir -Force "$CI_PROJECT_DIR/tmp"
168168 script :
169- - .\ scripts\ choco-install.ps1
169+ - ./ scripts/ choco-install.ps1
170170 - refreshenv
171171 - npm install --ignore-scripts
172172 - $env:Path = "$(npm bin);" + $env:Path
@@ -192,22 +192,14 @@ build:macos:
192192 - shared-macos-amd64
193193 image : macos-11-xcode-12
194194 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"
199195 # Location node-gyp installed headers and static libraries
200196 npm_config_devdir : " ${CI_PROJECT_DIR}/tmp/node-gyp"
201197 # Produce universal binary
202198 npm_config_arch : ' x64+arm64'
203- before_script :
199+ script :
204200 - 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
209202 - hash -r
210- script :
211203 - npm install --ignore-scripts
212204 - export PATH="$(npm bin):$PATH"
213205 - npm run build --verbose
0 commit comments