File tree 1 file changed +18
-6
lines changed
1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 7
7
name : Analysis
8
8
9
9
on :
10
- schedule :
10
+ # schedule:
11
11
# Weekly Sunday build
12
- - cron : " 0 0 * * 0"
13
- workflow_dispatch :
12
+ # - cron: "0 0 * * 0"
13
+ # workflow_dispatch:
14
+ #
15
+ pull-request :
16
+ branches :
17
+ - main
14
18
15
19
jobs :
16
20
30
34
env :
31
35
CXX : g++
32
36
CC : gcc
37
+ BUILD_WRAPPER_OUT_DIR : bw-output
33
38
steps :
34
39
# TODO: Remove this workaround following resolution of:
35
40
# https://github.com/AcademySoftwareFoundation/aswf-docker/issues/43
38
43
- name : Checkout
39
44
uses : actions/checkout@v3
40
45
with :
41
- fetch-depth : 50
46
+ # Disabling shallow clone is recommended for improving the
47
+ # relevancy of reporting
48
+ fetch-depth : 0
49
+ - name : Install sonar-scanner and build-wrapper
50
+ uses : sonarsource/sonarcloud-github-c-cpp@v1
42
51
- name : Create build directories
43
52
run : |
44
53
mkdir _install
63
72
- name : Build OpenEXR with build-wrapper
64
73
shell : bash
65
74
run : |
66
- build-wrapper-linux-x86-64 --out-dir bw_output \
75
+ build-wrapper-linux-x86-64 \
76
+ --out-dir "${{ env.BUILD_WRAPPER_OUT_DIR }}" \
67
77
cmake --build . \
68
78
--target install \
69
79
--config Release
83
93
env :
84
94
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85
95
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
86
- run : sonar-scanner -X -Dsonar.login=$SONAR_TOKEN
96
+ run : sonar-scanner -X -Dsonar.login=$SONAR_TOKEN \
97
+ --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
98
+
87
99
88
100
# ------------------------------------------------------------------------------
89
101
# Valgrind memcheck test
You can’t perform that action at this time.
0 commit comments