forked from ranford/Mass-Spring-Damper
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathazure-pipelines.yml
65 lines (52 loc) · 1.29 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
trigger:
- main
schedules:
- cron: '57 23 * * 1'
displayName: Weekly build to keep cache warm
branches:
include:
- main
jobs:
- job: 'RunMATLABBuild'
pool:
vmImage: $(PLATFORM)
strategy:
matrix:
windows-MATLAB-R2023a:
PLATFORM: 'windows-latest'
MATLAB_RELEASE: R2023a
linux-MATLAB-R2023a:
PLATFORM: 'ubuntu-latest'
MATLAB_RELEASE: R2023a
mac-MATLAB-R2023a:
PLATFORM: 'macOS-latest'
MATLAB_RELEASE: R2023a
windows-MATLAB-R2024a:
PLATFORM: 'windows-latest'
MATLAB_RELEASE: R2024a
linux-MATLAB-R2024a:
PLATFORM: 'ubuntu-latest'
MATLAB_RELEASE: R2024a
mac-MATLAB-R2024a:
PLATFORM: 'macOS-latest'
MATLAB_RELEASE: R2024a
variables:
- group: matlab-batch-license
steps:
- task: Cache@2
inputs:
key: MATLAB-$(MATLAB_RELEASE) | $(PLATFORM) | azure-pipelines.yml
path: $(AGENT_TOOLSDIRECTORY)/MATLAB
- task: InstallMATLAB@1
inputs:
release: $(MATLAB_RELEASE)
products: >
MATLAB
MATLAB_Compiler
MATLAB_Compiler_SDK
MATLAB_Test
- task: RunMATLABBuild@1
inputs:
tasks: test
env:
MLM_LICENSE_TOKEN: $(MLM_LICENSE_TOKEN)