1
1
name : Boards Test
2
2
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
6
3
on :
7
4
workflow_dispatch :
8
- inputs :
9
- codeql :
10
- description : " Enable CodeQL Analysis"
11
- default : false
12
- type : " boolean"
13
- required : true
14
5
pull_request :
15
6
paths :
16
7
- " boards.txt"
99
90
exit 1;
100
91
fi
101
92
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
122
94
123
95
- name : Compile sketch
124
96
uses : P-R-O-C-H-Y/compile-sketches@a62f069b92dc8f5053da4ac439ea6d1950cf6379 # main
@@ -136,31 +108,3 @@ jobs:
136
108
sketch-paths : " - ./libraries/ESP32/examples/CI/CIBoardsTest/CIBoardsTest.ino"
137
109
verbose : true
138
110
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