File tree 1 file changed +28
-1
lines changed
1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 9
9
node_14_x :
10
10
node_version : 14.x
11
11
maxParallel : 3
12
+ variables :
13
+ # From https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
14
+ CARGO_HOME : $(Pipeline.Workspace)/.cargo
15
+ YARN_CACHE_FOLDER : $(Pipeline.Workspace)/.yarn
12
16
steps :
13
17
- task : NodeTool@0
14
18
inputs :
39
43
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p;
40
44
displayName: Bump max inotify watches
41
45
46
+ # From https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
47
+ - task : Cache@2
48
+ inputs :
49
+ key : ' cargo | "$(Agent.OS)" | Cargo.lock'
50
+ restoreKeys : |
51
+ cargo | "$(Agent.OS)"
52
+ cargo
53
+ path : $(CARGO_HOME)
54
+ displayName : Cache Cargo directory
55
+ # Like yarn --frozen-lockfile, fails immediately if lockfile needs updates
56
+ - script : cargo fetch --locked
57
+ displayName : ' Fetch cargo dependencies'
58
+ - script : cargo test --all
59
+ displayName : ' Run Rust tests'
60
+
61
+ # From https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
62
+ - task : Cache@2
63
+ inputs :
64
+ key : ' yarn | "$(Agent.OS)" | yarn.lock'
65
+ restoreKeys : |
66
+ yarn | "$(Agent.OS)"
67
+ yarn
68
+ path : $(YARN_CACHE_FOLDER)
69
+ displayName : Cache yarn directory
42
70
- script : node scripts/link-native.js
43
71
displayName : ' Link native dependencies'
44
-
45
72
# use `--frozen-lockfile` to fail immediately if the committed yarn.lock needs updates
46
73
# https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-frozen-lockfile
47
74
- script : yarn --frozen-lockfile
You can’t perform that action at this time.
0 commit comments