We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398ccdd commit cbc03c5Copy full SHA for cbc03c5
AzureDevOps/ToolboxDistribution.yml
@@ -12,7 +12,17 @@ jobs:
12
pool:
13
vmImage: $(imageName)
14
steps:
15
+ - task: Cache@2
16
+ inputs:
17
+ key: "$(imageName)"
18
+ restoreKeys: |
19
+ "$(imageName)"
20
+ path: $(MATLABROOT)
21
+ cacheHitVar: CACHE_RESTORED
22
+ displayName: Cache MATLAB
23
+
24
- task: InstallMATLAB@1
25
+ condition: ne(variables.CACHE_RESTORED, 'true')
26
27
- task: RunMATLABCommand@1
28
inputs:
@@ -38,14 +48,6 @@ jobs:
38
48
# env:
39
49
# MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)
40
50
- script: echo $(MATLABROOT)
41
-
42
- - task: Cache@2
43
- inputs:
44
- key: "$(imageName)"
45
- restoreKeys: |
46
- "$(imageName)"
47
- path: $(MATLABROOT)
- displayName: Cache MATLAB
51
52
# Runs build to create MEX file and then run tests
53
- task: RunMATLABBuild@1
0 commit comments