|
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 |
|
41 | 45 | - name: Checkout |
42 | 46 | uses: actions/checkout@v3 |
43 | 47 | with: |
44 | | - fetch-depth: 50 |
| 48 | + # Disabling shallow clone is recommended for improving the |
| 49 | + # relevancy of reporting |
| 50 | + fetch-depth: 0 |
| 51 | + - name: Install sonar-scanner and build-wrapper |
| 52 | + uses: sonarsource/sonarcloud-github-c-cpp@v1 |
45 | 53 | - name: Create build directories |
46 | 54 | run: | |
47 | 55 | mkdir _install |
|
88 | 96 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
89 | 97 | run: sonar-scanner -X -Dsonar.login=$SONAR_TOKEN |
90 | 98 |
|
| 99 | + |
91 | 100 | # ------------------------------------------------------------------------------ |
92 | 101 | # Valgrind memcheck test |
93 | 102 | # ------------------------------------------------------------------------------ |
@@ -119,7 +128,7 @@ jobs: |
119 | 128 | shell: bash |
120 | 129 | - name: Install Dependencies |
121 | 130 | run: | |
122 | | - share/ci/scripts/linux/install_valgrind.sh |
| 131 | + share/ci/scripts/linux/install_valgrind.sh |
123 | 132 | shell: bash |
124 | 133 | - name: Configure |
125 | 134 | run: | |
@@ -171,12 +180,12 @@ jobs: |
171 | 180 | include: |
172 | 181 | # Fuzz test |
173 | 182 | - build: 1 |
174 | | - build-descrip: |
175 | | - cflags: |
176 | | - cxxflags: |
| 183 | + build-descrip: |
| 184 | + cflags: |
| 185 | + cxxflags: |
177 | 186 | # Fuzz with sanitizer |
178 | 187 | - build: 2 |
179 | | - build-descrip: With Sanitizer |
| 188 | + build-descrip: With Sanitizer |
180 | 189 | cflags: -DCFLAGS='-fsanitize=address' |
181 | 190 | cxxflags: -DCXXFLAGS='-fsanitize=address' |
182 | 191 | env: |
@@ -208,7 +217,7 @@ jobs: |
208 | 217 | -DOPENEXR_RUN_FUZZ_TESTS='ON' \ |
209 | 218 | -DOPENEXR_ENABLE_THREADING='ON' \ |
210 | 219 | ${{ matrix.cxxflags }} \ |
211 | | - ${{ matrix.cflags }} |
| 220 | + ${{ matrix.cflags }} |
212 | 221 | working-directory: _build |
213 | 222 | - name: Build |
214 | 223 | run: | |
|
0 commit comments