Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ci/esy-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ steps:
- task: NodeTool@0
inputs:
versionSpec: '8.9'
- template: ./use-cache-esy.yml
- script: npm i -g esy
- script: npm install
- script: npm run build-exe
Expand Down
19 changes: 19 additions & 0 deletions .ci/use-cache-esy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
steps:
- task: Cache@2
inputs:
key: 'v1 | esy-install-cache | "$(Agent.OS)" | "$(Build.SourcesDirectory)/esy.lock/index.json"' # vPrimary, here, is just a way to bust cache during debugging. Inspired from https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops#can-i-clear-a-cache"
restoreKeys: |
v1 | esy-install-cache | ${{ parameters.platform }}
path: $(ESY__CACHE_INSTALL_PATH)
cacheHitVar: ESY_INSTALL_CACHE_RESTORED
displayName: "Caching $(ESY__CACHE_INSTALL_PATH)"
- task: Cache@2
inputs:
key: 'v1 | esy-sources | "$(Agent.OS)" | "$(Build.SourcesDirectory)/esy.lock/index.json"' # vPrimary, here, is just a way to bust cache during debugging. Inspired from https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops#can-i-clear-a-cache"
restoreKeys: |
v1 | esy-sources | "$(Agent.OS)"
v1 | esy-sources
path: "$(ESY__CACHE_INSTALL_PATH)/../../source"
cacheHitVar: ESY_SOURCE_CACHE_RESTORED
displayName: "Caching $(ESY__CACHE_INSTALL_PATH)/../../source"