Skip to content

Commit

Permalink
[GITHUB ACTIONS] add GCC static analyzer
Browse files Browse the repository at this point in the history
make KCFLAGS='-fanalyzer' comes for free so we might as well use it,
eh?

Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed Jul 13, 2023
1 parent 5311324 commit 64c70e6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,29 @@ jobs:
make -k sound/soc/amd/ C=2
make -k drivers/soundwire/ C=2
gcc-fanalyzer:
name: "GCC static -fanalyzer"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install libelf
run: |
sudo apt update
sudo apt install -y libelf-dev
- name: build start
run: |
export ARCH=x86_64 KCFLAGS="-Wall -Werror -fanalyzer"
make allmodconfig
make modules_prepare
make -k sound/soc/sof/
make -k sound/soc/intel/common
make -k sound/soc/intel/boards/
make -k sound/soc/intel/atom/
make -k sound/soc/amd/
make -k drivers/soundwire/
gcc-sof-x86_64-W1:
name: "GCC build X86_64 with W=1"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 64c70e6

Please sign in to comment.