workflows: Explicitly enable/disable GObject-Introspection

For the build that uses --enable-asan, explicitly disable introspection,
since the GObject-Introspection scanner works poorly with libtool
and AddressSanitizer (see #4844); the only reason this worked until
now is that --enable-asan doesn't currently do anything (again,
see #4844).

For the build that runs tests under valgrind, we already can't use
AddressSanitizer, making this a good place to explicitly enable
introspection, so that we have at least one build with it enabled.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2022-04-23 16:10:54 +01:00
committed by Alexander Larsson
parent cb73e098ef
commit 1e09311621

View File

@@ -65,10 +65,12 @@ jobs:
- name: autogen.sh
run: NOCONFIGURE=1 ./autogen.sh
- name: configure
# We don't do gtk-doc or GObject-Introspection here, because they can
# clash with AddressSanitizer. Instead, the clang build enables those.
run: |
mkdir _build
pushd _build
../configure --enable-internal-checks --enable-asan
../configure --enable-internal-checks --enable-asan --disable-introspection
popd
env:
CFLAGS: -O2 -Wp,-D_FORTIFY_SOURCE=2
@@ -172,7 +174,7 @@ jobs:
run: |
mkdir _build
pushd _build
../configure --enable-gtk-doc --enable-gtk-doc-html
../configure --enable-gtk-doc --enable-gtk-doc-html --enable-introspection
popd
env:
CFLAGS: -O2