@@ -2,6 +2,22 @@ name: Compilation Tests
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ log_level :
7+ description : " Log level"
8+ default : " none"
9+ type : " choice"
10+ required : true
11+ options :
12+ - " none"
13+ - " error"
14+ - " warn"
15+ - " info"
16+ - " debug"
17+ - " verbose"
18+ schedule :
19+ # Every Sunday at 2:00 UTC run a build with verbose log level
20+ - cron : " 0 2 * * SUN"
521 push :
622 branches :
723 - master
@@ -163,9 +179,19 @@ jobs:
163179 ./tools/riscv32-*
164180 ./tools/xtensa-*
165181
182+ - name : Set Log Level
183+ run : |
184+ if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
185+ echo "LOG_LEVEL=${{ github.event.inputs.log_level }}" >> $GITHUB_ENV
186+ elif [ "${{ github.event_name }}" == "schedule" ]; then
187+ echo "LOG_LEVEL=verbose" >> $GITHUB_ENV
188+ else
189+ echo "LOG_LEVEL=none" >> $GITHUB_ENV
190+ fi
191+
166192 - name : Build all sketches
167193 if : ${{ needs.gen-chunks.outputs.build_all == 'true' }}
168- run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ env.MAX_CHUNKS }} 1
194+ run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ env.MAX_CHUNKS }} 1 ${{ env.LOG_LEVEL }}
169195
170196 - name : Download sketches found
171197 if : ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
@@ -175,7 +201,7 @@ jobs:
175201
176202 - name : Build selected sketches
177203 if : ${{ needs.gen-chunks.outputs.build_all == 'false' && needs.gen-chunks.outputs.build_libraries == 'true' }}
178- run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ needs.gen-chunks.outputs.chunk_count }} 1 sketches_found.txt
204+ run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} ${{ needs.gen-chunks.outputs.chunk_count }} 1 ${{ env.LOG_LEVEL }} sketches_found.txt
179205
180206 # Upload cli compile json as artifact
181207 - name : Upload cli compile json
0 commit comments