Skip to content

Commit b07e312

Browse files
committed
chore: separate caching for windows
1 parent c6ba29a commit b07e312

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.circleci/config.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,17 @@ commands:
130130
key: *source-cache
131131
paths:
132132
- ".git"
133+
checkout_with_cache_windows:
134+
description: Checkout command with caching, for Windows
135+
steps:
136+
- restore_cache:
137+
keys:
138+
- &source-cache source-v1-win-{{ .Branch }}-{{ .Revision }}
139+
- checkout
140+
- save_cache:
141+
key: *source-cache
142+
paths:
143+
- ".git"
133144

134145
jobs:
135146
security-scans:
@@ -189,7 +200,7 @@ jobs:
189200
<<: *windows_big
190201
parallelism: 2 # Run tests across 2 containers
191202
steps:
192-
- checkout_with_cache
203+
- checkout_with_cache_windows
193204
- install_node_npm:
194205
node_version: << parameters.node_version >>
195206
- restore_cache:
@@ -229,7 +240,7 @@ jobs:
229240
<<: *windows_big
230241
parallelism: 2 # Run tests across 2 containers
231242
steps:
232-
- checkout_with_cache
243+
- checkout_with_cache_windows
233244
- install_node_npm:
234245
node_version: << parameters.node_version >>
235246
- setup_npm_user

0 commit comments

Comments
 (0)