.github/zephyr: add -Werror to AFLAGS, not just CFLAGS

Past Zephyr experience showed that CFLAGS is not enough to cover all
cases: https://github.com/zephyrproject-rtos/zephyr/commit/8a603da6cde63

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2023-04-12 21:20:39 +00:00 committed by Liam Girdwood
parent 88c8c1eb27
commit 9cd7090345
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ jobs:
- name: build
run: cd workspace && ./sof/zephyr/docker-run.sh
./sof/zephyr/docker-build.sh --cmake-args=-DEXTRA_CFLAGS=-Werror
--cmake-args=-DEXTRA_AFLAGS='-Werror -Wa,--fatal-warnings'
--cmake-args=--warn-uninitialized ${{ matrix.IPC_platforms }}
- name: Upload build artifacts
@ -282,6 +283,7 @@ jobs:
run: python sof/scripts/xtensa-build-zephyr.py
--no-interactive
--cmake-args=-DEXTRA_CFLAGS=-Werror
--cmake-args=-DEXTRA_AFLAGS='-Werror -Wa,--fatal-warnings'
--cmake-args=--warn-uninitialized ${{ matrix.platforms }}
- name: Upload build artifacts