Skip to content

Commit 91f073e

Browse files
committed
ci: suppress useless warnings in CI reports
1 parent 14ff558 commit 91f073e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/package_core.yml

+8
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,19 @@ jobs:
9393
- name: "arduino:zephyr"
9494
source-path: "ArduinoCore-zephyr"
9595
sketch-paths: Blink
96+
cli-compile-flags: |
97+
- '--build-property'
98+
- 'compiler.c.extra_flags=-Wno-type-limits -Wno-missing-field-initializers'
99+
- '--build-property'
100+
- 'compiler.cpp.extra_flags=-Wno-type-limits -Wno-missing-field-initializers'
96101
verbose: 'false'
97102
enable-deltas-report: 'false'
98103
enable-warnings-report: 'true'
99104
enable-warnings-log: 'true'
100105

101106
- name: Get job ID
102107
id: job_id
108+
if: ${{ success() || failure() }}
103109
uses: actions/github-script@main
104110
with:
105111
script: |
@@ -112,11 +118,13 @@ jobs:
112118
return workflow_run.jobs.find((job) => job.name === job_name).id;
113119
114120
- name: Prepare log
121+
if: ${{ success() || failure() }}
115122
run: |
116123
sed -i -e 's!/home/runner/.arduino15/packages/arduino/hardware/zephyr/[^/]*/!!g' sketches-reports/${REPORT_FILE}
117124
cat sketches-reports/${REPORT_FILE} | jq -cr ".boards[0].sketches[0] += { job_id: ${{ steps.job_id.outputs.result }} }" > ${REPORT_FILE} && mv ${REPORT_FILE} sketches-reports/
118125
119126
- uses: actions/upload-artifact@v4
127+
if: ${{ success() || failure() }}
120128
with:
121129
name: test-report-${{ needs.package-core.outputs.CORE_TAG }}-${{ matrix.board }}
122130
path: sketches-reports/*

0 commit comments

Comments
 (0)