Skip to content

Commit

Permalink
.github/workflows: Set warnings-as-errors for builds
Browse files Browse the repository at this point in the history
To avoid code with build warnings being introduced into the tree, force
CONFIG_WERROR=y in the build workflow.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Jan 17, 2023
1 parent 46be69f commit 964044d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/kernel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
run: |
mkdir ${{github.workspace}}/build
make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2835_defconfig
scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} Image modules dtbs
mkdir -p ${{github.workspace}}/install/boot
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
Expand Down Expand Up @@ -78,6 +79,7 @@ jobs:
run: |
mkdir ${{github.workspace}}/build
make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build defconfig
scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} Image.gz modules dtbs
mkdir -p ${{github.workspace}}/install/boot
make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
Expand Down Expand Up @@ -118,6 +120,7 @@ jobs:
run: |
mkdir ${{github.workspace}}/build
make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2711_defconfig
scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} zImage modules dtbs
mkdir -p ${{github.workspace}}/install/boot
make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
Expand Down Expand Up @@ -158,6 +161,7 @@ jobs:
run: |
mkdir ${{github.workspace}}/build
make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2709_defconfig
scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} zImage modules dtbs
mkdir -p ${{github.workspace}}/install/boot
make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
Expand Down Expand Up @@ -198,6 +202,7 @@ jobs:
run: |
mkdir ${{github.workspace}}/build
make ARCH=arm KERNEL=kernel7l CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build bcm2711_defconfig
scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
make ARCH=arm KERNEL=kernel7l CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} zImage modules dtbs
mkdir -p ${{github.workspace}}/install/boot
make ARCH=arm KERNEL=kernel7l CROSS_COMPILE=arm-linux-gnueabihf- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
Expand Down Expand Up @@ -248,6 +253,7 @@ jobs:
run: |
mkdir ${{github.workspace}}/build
make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build bcm2711_defconfig
scripts/config --file ${{github.workspace}}/build/.config --set-val CONFIG_WERROR y
make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build -j ${{env.NUM_JOBS}} Image.gz modules dtbs
mkdir -p ${{github.workspace}}/install/boot
make ARCH=arm64 KERNEL=kernel8 CROSS_COMPILE=aarch64-linux-gnu- O=${{github.workspace}}/build INSTALL_MOD_PATH=${{github.workspace}}/install modules_install
Expand Down

0 comments on commit 964044d

Please sign in to comment.