Skip to content

Commit 19e2e05

Browse files
committed
test
1 parent df52b72 commit 19e2e05

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/push.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,6 @@ jobs:
178178
with:
179179
python-version: "3.x"
180180

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-
189181
- name: Get libs cache
190182
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
191183
with:
@@ -209,6 +201,15 @@ jobs:
209201
echo "LOG_LEVEL=none" >> $GITHUB_ENV
210202
fi
211203
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+
212213
- name: Build all sketches
213214
if: ${{ needs.gen-chunks.outputs.build_all == 'true' }}
214215
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ env.MAX_CHUNKS }} 1 ${{ env.LOG_LEVEL }}
@@ -223,6 +224,12 @@ jobs:
223224
if: ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
224225
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ needs.gen-chunks.outputs.chunk_count }} 1 ${{ env.LOG_LEVEL }} sketches_found.txt
225226

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+
226233
#Upload cli compile json as artifact
227234
- name: Upload cli compile json
228235
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -231,12 +238,6 @@ jobs:
231238
path: cli_compile_${{ matrix.chunk }}.json
232239
overwrite: true
233240

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-
240241
# Windows and MacOS
241242
build-arduino-win-mac:
242243
name: Arduino on ${{ matrix.os }}

0 commit comments

Comments
 (0)