mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 10:16:32 +00:00
chore: cache ~/.pkg-cache in Travis CI and Appveyor CI (#1598)
Looks like pkg downloads node binaries from GitHub Releases, and GitHub may impose a rate limiting if we download too many things from them in a short period of time (likely to happen when there are many concurrent PRs). In order to mitigate this issue, this commit adds `$HOME/.pkg-cache`, the directory where pkg stores node binaries, to the CI services cache. See: https://github.com/resin-io/etcher/pull/1594 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
parent
2a8e91190c
commit
76b6bdfd06
@ -15,6 +15,7 @@ cache:
|
||||
- $HOME/.npm/_prebuilds
|
||||
- $HOME/Library/Caches/electron
|
||||
- $HOME/Library/Caches/electron-builder
|
||||
- $HOME/.pkg-cache
|
||||
- node_modules
|
||||
|
||||
services:
|
||||
|
@ -8,6 +8,7 @@ cache:
|
||||
- '%LOCALAPPDATA%\electron\Cache'
|
||||
- '%LOCALAPPDATA%\electron-builder\cache'
|
||||
- '%AppData%\npm-cache'
|
||||
- '%USERPROFILE%\.pkg-cache'
|
||||
- node_modules -> npm-shrinkwrap.json
|
||||
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
||||
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
||||
|
Loading…
x
Reference in New Issue
Block a user