From feceebf8a455f2c184d6eb51fb48e4073440f6b1 Mon Sep 17 00:00:00 2001 From: Matt Staveley-Taylor Date: Fri, 8 Nov 2024 03:35:46 +0100 Subject: [PATCH] ci: check more public headers for pedantic warnings The previous glob was not checking all headers. Fix this, and fix any new issues that have arisen. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56d477248..f5c3d8d03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,14 +56,16 @@ jobs: - name: Check public headers conform to ISO standards with pedantic warnings if: ${{matrix.builds == 'mlibc-headers-only'}} working-directory: build/ + shell: bash run: | + shopt -s globstar GCC_ARCH="${{matrix.arch}}" case "$GCC_ARCH" in "x86") GCC_ARCH="i686" ;; esac - ALL_INCLUDES="-- -include\0%s\0 packages/${{matrix.builds}}/usr/include/**.h" + ALL_INCLUDES="-- -include\0%s\0 packages/${{matrix.builds}}/usr/include/**/*.h" GCC_ARGS="-S /dev/null -o /dev/null -I packages/${{matrix.builds}}/usr/include -I packages/linux-headers/usr/include -nostdlib -Werror -Wpedantic -Wsystem-headers" GCC_C_ARGS="$GCC_ARCH-linux-mlibc-gcc -x c $GCC_ARGS" GCC_CXX_ARGS="$GCC_ARCH-linux-mlibc-g++ -x c++ $GCC_ARGS"