11name : Boards Test
22
3- # The workflow will run on:
4- # - Manual dispatch - tests ALL boards with optional CodeQL
5- # - Pull requests with boards.txt changes - tests only NEW/MODIFIED boards
63on :
74 workflow_dispatch :
8- inputs :
9- codeql :
10- description : " Enable CodeQL Analysis"
11- default : false
12- type : " boolean"
13- required : true
145 pull_request :
156 paths :
167 - " boards.txt"
9990 exit 1;
10091 fi
10192
102- - name : Get libs cache
103- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
104- with :
105- key : libs-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package/package_esp32_index.template.json', 'tools/get.py') }}
106- path : |
107- ./tools/dist
108- ./tools/esp32-arduino-libs
109- ./tools/esptool
110- ./tools/mk*
111- ./tools/openocd-esp32
112- ./tools/riscv32-*
113- ./tools/xtensa-*
114-
115- - name : Initialize CodeQL
116- uses : github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
117- if : ${{ inputs.codeql }}
118- with :
119- languages : cpp
120- build-mode : manual
121- config-file : ./.github/codeql/codeql-config.yml
93+ # Running CodeQL here generates thousands of false positives
12294
12395 - name : Compile sketch
12496 uses : P-R-O-C-H-Y/compile-sketches@a62f069b92dc8f5053da4ac439ea6d1950cf6379 # main
@@ -136,31 +108,3 @@ jobs:
136108 sketch-paths : " - ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
137109 verbose : true
138110
139- - name : Run CodeQL Analysis
140- uses : github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
141- if : ${{ inputs.codeql }}
142- with :
143- output : sarif-results
144- upload : failure-only
145- check_name : " CodeQL Boards"
146-
147- - name : filter-sarif
148- uses : advanced-security/filter-sarif@f3b8118a9349d88f7b1c0c488476411145b6270d # v1.0.1
149- with :
150- patterns : |
151- -tools/*
152- input : sarif-results/cpp.sarif
153- output : sarif-results/cpp.sarif
154-
155- - name : Upload SARIF
156- uses : github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
157- with :
158- sarif_file : sarif-results/cpp.sarif
159-
160- - name : Upload loc as a Build Artifact
161- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
162- with :
163- name : sarif-results
164- path : sarif-results
165- retention-days : 1
166-
0 commit comments