Skip to content

Commit

Permalink
Add W=1 and -Werror to CI for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksa Savic <[email protected]>
  • Loading branch information
aleksamagicka committed Dec 7, 2023
1 parent 3bd7cb1 commit 610f3fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
- run: cp src/.github/workflows/all.config linux/
- run: scripts/config --file all.config ${{ matrix.kconfig_pm }} ${{ matrix.kconfig_debug_fs }}
working-directory: linux
- run: KCONFIG_ALLCONFIG=1 make allnoconfig
- run: KCONFIG_ALLCONFIG=1 KCFLAGS=-Werror make allnoconfig
working-directory: linux
- run: make -j$(nproc)
- run: KCFLAGS=-Werror make -j$(nproc)
working-directory: linux
- run: make -k "KDIR=${{ github.workspace }}/linux"
- run: KCFLAGS=-Werror make -k "KDIR=${{ github.workspace }}/linux"
working-directory: src
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include Kbuild
KDIR ?= /lib/modules/`uname -r`/build

modules modules_install clean:
make -C $(KDIR) M=$$PWD $@
make W=1 -C $(KDIR) M=$$PWD $@

SOURCES := $(patsubst %.o,%.c,$(obj-m))

Expand Down

0 comments on commit 610f3fe

Please sign in to comment.