@@ -178,14 +178,6 @@ jobs:
178
178
with :
179
179
python-version : " 3.x"
180
180
181
- - name : Initialize CodeQL
182
- uses : github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
183
- if : ${{ env.RUN_CODEQL }}
184
- with :
185
- languages : cpp
186
- build-mode : manual
187
- config-file : ./.github/codeql/codeql-config.yml
188
-
189
181
- name : Get libs cache
190
182
uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
191
183
with :
@@ -209,6 +201,15 @@ jobs:
209
201
echo "LOG_LEVEL=none" >> $GITHUB_ENV
210
202
fi
211
203
204
+ - name : Initialize CodeQL
205
+ uses : github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
206
+ if : ${{ env.RUN_CODEQL }}
207
+ with :
208
+ languages : cpp
209
+ matrix : null
210
+ build-mode : manual
211
+ config-file : ./.github/codeql/codeql-config.yml
212
+
212
213
- name : Build all sketches
213
214
if : ${{ needs.gen-chunks.outputs.build_all == 'true' }}
214
215
run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ env.MAX_CHUNKS }} 1 ${{ env.LOG_LEVEL }}
@@ -223,6 +224,12 @@ jobs:
223
224
if : ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
224
225
run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ needs.gen-chunks.outputs.chunk_count }} 1 ${{ env.LOG_LEVEL }} sketches_found.txt
225
226
227
+ - name : Run CodeQL Analysis
228
+ uses : github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
229
+ if : ${{ env.RUN_CODEQL }}
230
+ with :
231
+ check_name : " CodeQL Linux Chunk ${{ matrix.chunk }}"
232
+
226
233
# Upload cli compile json as artifact
227
234
- name : Upload cli compile json
228
235
uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -231,12 +238,6 @@ jobs:
231
238
path : cli_compile_${{ matrix.chunk }}.json
232
239
overwrite : true
233
240
234
- - name : Run CodeQL Analysis
235
- uses : github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
236
- if : ${{ env.RUN_CODEQL }}
237
- with :
238
- check_name : " CodeQL Linux Chunk ${{ matrix.chunk }}"
239
-
240
241
# Windows and MacOS
241
242
build-arduino-win-mac :
242
243
name : Arduino on ${{ matrix.os }}
0 commit comments