File tree 2 files changed +62
-515
lines changed
2 files changed +62
-515
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
permissions :
16
20
contents : read
33
37
env :
34
38
CXX : g++
35
39
CC : gcc
40
+ BUILD_WRAPPER_OUT_DIR : bw-output
36
41
steps :
37
42
# TODO: Remove this workaround following resolution of:
38
43
# https://github.com/AcademySoftwareFoundation/aswf-docker/issues/43
41
46
- name : Checkout
42
47
uses : actions/checkout@v3
43
48
with :
44
- fetch-depth : 50
49
+ # Disabling shallow clone is recommended for improving the
50
+ # relevancy of reporting
51
+ fetch-depth : 0
52
+ - name : Install sonar-scanner and build-wrapper
53
+ uses : sonarsource/sonarcloud-github-c-cpp@v1
45
54
- name : Create build directories
46
55
run : |
47
56
mkdir _install
66
75
- name : Build OpenEXR with build-wrapper
67
76
shell : bash
68
77
run : |
69
- build-wrapper-linux-x86-64 --out-dir bw_output \
78
+ build-wrapper-linux-x86-64 \
79
+ --out-dir "${{ env.BUILD_WRAPPER_OUT_DIR }}" \
70
80
cmake --build . \
71
81
--target install \
72
82
--config Release
86
96
env :
87
97
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88
98
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
89
- run : sonar-scanner -X -Dsonar.login=$SONAR_TOKEN
99
+ run : sonar-scanner -X -Dsonar.login=$SONAR_TOKEN \
100
+ --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
101
+
90
102
91
103
# ------------------------------------------------------------------------------
92
104
# Valgrind memcheck test
You can’t perform that action at this time.
0 commit comments