From b5b858637f088e5cbc02480609393df15883ecbd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 11 Feb 2025 18:21:16 +0100 Subject: [PATCH] Add check for self-contained headers to a CI job It seems wasteful to check this in all of them, so choose one with the relatively short running-time and do it only there. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cabad4a698..132a44db35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,7 @@ jobs: runner: ubuntu-22.04 configure_flags: --enable-compat30 --disable-std_containers use_xvfb: true + check_headers: true - name: Ubuntu 22.04 wxGTK with ASAN runner: ubuntu-22.04 configure_flags: --disable-compat32 --disable-sys-libs @@ -332,6 +333,11 @@ jobs: - name: Building tests working-directory: tests run: | + if [ ${{ matrix.check_headers }} ]; then + echo "Checking that all headers are self-contained..." + make allheaders_selfcontained + echo "Done." + fi make $wxBUILD_ARGS failtest make -k $wxBUILD_ARGS "CXXFLAGS=$wxMAKEFILE_CXXFLAGS" "LDFLAGS=$wxMAKEFILE_LDFLAGS"