Skip to content

Commit

Permalink
.github/sparse: use --pristine
Browse files Browse the repository at this point in the history
--pristine makes no difference for github but it's a good for anyone
trying to reproduce results and copying the command.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb authored and lgirdwood committed Dec 12, 2022
1 parent e616b42 commit 2aa9527
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/sparse-zephyr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
# We have to painfully extract REAL_CC from the docker image to
# tell the Zephyr build what it... already knows and wants!! Zephyr
# commit 3ebb18b8826 explains this sparse problem.
#
# --pristine is important to reproduce _warnings_. It makes no
# difference for github but it's useful for anyone trying to
# reproduce and copying the command from the logs.
- name: analyze zephyr
working-directory: ./workspace
run: |
Expand All @@ -72,6 +76,6 @@ jobs:
ZSDK=$(cat zsdk_location); _RCC=${{ matrix.platforms.real_cc }}
REAL_CC="$ZSDK/$_RCC" ./sof/zephyr/docker-run.sh \
./sof/zephyr/docker-build.sh ${{ matrix.platforms.platform }} \
--cmake-args=-DSPARSE=y 2>&1 | tee _.log
--cmake-args=-DSPARSE=y --pristine 2>&1 | tee _.log
printf '\n\n\t\t\t ---- Messages below are treated as sparse errors --- \n\n\n'
(set -x; ./sof/scripts/parse_sparse_output.sh < _.log)

0 comments on commit 2aa9527

Please sign in to comment.