File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,25 @@ jobs:
23
23
release :
24
24
type : string
25
25
executor : <<parameters.os>>
26
+ environment :
27
+ MATLAB_LOG_DIR : /home/circleci/project/logs
28
+ MW_DIAGNOSTIC_DEST : file
29
+ MW_DIAGNOSTIC_SPEC : cppmicroservices::framework.*=all;install.*=all;
30
+ MW_VERBOSE_HTTPCLIENT_CORE : 1
26
31
steps :
27
32
- checkout
28
33
- matlab/install :
29
34
release : <<parameters.release>>
30
35
products : Optimization_Toolbox Curve_Fitting_Toolbox
31
36
- matlab/run-tests :
32
37
source-folder : code
38
+ - run :
39
+ command : tar -cvzf matlab-logs.tar /home/circleci/project/logs
40
+ when : on_fail
41
+ shell : bash
42
+ - store_artifacts :
43
+ path : matlab-logs.tar
44
+ when : on_fail
33
45
34
46
workflows :
35
47
all-builds :
Original file line number Diff line number Diff line change 17
17
fail-fast : false
18
18
runs-on : ${{ matrix.os }}
19
19
20
+ env :
21
+ MATLAB_LOG_DIR : ${{ github.workspace }}/logs
22
+ MW_DIAGNOSTIC_DEST : file
23
+ MW_DIAGNOSTIC_SPEC : cppmicroservices::framework.*=all;install.*=all;
24
+ MW_VERBOSE_HTTPCLIENT_CORE : 1
25
+
20
26
steps :
21
27
- name : Check out repository
22
28
uses : actions/checkout@v4
31
37
uses : matlab-actions/run-tests@v2
32
38
with :
33
39
source-folder : code
40
+
41
+ - name : Upload MPM and MATLAB logs
42
+ if : ${{ failure() }}
43
+ uses : actions/upload-artifact@v4
44
+ with :
45
+ name : matlab-logs-${{ github.job }}-${{ matrix.os }}
46
+ path : ${{ env.MATLAB_LOG_DIR }}
47
+ if-no-files-found : ignore
34
48
35
49
- name : Send mail
36
50
if : ${{ failure() }}
Original file line number Diff line number Diff line change 5
5
displayName : ${{ format('{0} {1}', image, release) }}
6
6
pool :
7
7
vmImage : ${{ image }}
8
+ variables :
9
+ MATLAB_LOG_DIR : $(Build.SourcesDirectory)/logs
10
+ MW_DIAGNOSTIC_DEST : file
11
+ MW_DIAGNOSTIC_SPEC : cppmicroservices::framework.*=all;install.*=all;
12
+ MW_VERBOSE_HTTPCLIENT_CORE : 1
8
13
steps :
9
14
- task : InstallMATLAB@1
10
15
inputs :
11
16
release : ${{ release }}
12
17
products : Optimization_Toolbox Curve_Fitting_Toolbox
13
18
- task : RunMATLABTests@1
14
19
inputs :
15
- sourceFolder : code
20
+ sourceFolder : code
21
+ - task : PublishBuildArtifacts@1
22
+ condition : failed()
23
+ inputs :
24
+ PathtoPublish : $(MATLAB_LOG_DIR)
25
+ ArtifactName : matlab-logs
26
+ displayName : Publish MPM and MATLAB logs
You can’t perform that action at this time.
0 commit comments