Skip to content

Commit d15acc9

Browse files
committed
ci: Check for missing dependencies in meson builds
Extends the Linux and Windows meson builds with a check for missing dependencies by running ninja -t missingdeps after the build. This highlights unindended dependencies. Reviewed-by: Andres Freund <andres@anarazel.de> https://postgr.es/m/CALdSSPi5fj0a7UG7Fmw2cUD1uWuckU_e8dJ+6x-bJEokcSXzqA@mail.gmail.com
1 parent 3887d0c commit d15acc9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.cirrus.tasks.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,17 @@ task:
528528
build-32
529529
EOF
530530
531-
build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}'
532-
build_32_script: su postgres -c 'ninja -C build-32 -j${BUILD_JOBS} ${MBUILD_TARGET}'
531+
build_script: |
532+
su postgres <<-EOF
533+
ninja -C build -j${BUILD_JOBS} ${MBUILD_TARGET}
534+
ninja -C build -t missingdeps
535+
EOF
536+
537+
build_32_script: |
538+
su postgres <<-EOF
539+
ninja -C build-32 -j${BUILD_JOBS} ${MBUILD_TARGET}
540+
ninja -C build -t missingdeps
541+
EOF
533542
534543
upload_caches: ccache
535544

@@ -729,6 +738,7 @@ task:
729738
build_script: |
730739
vcvarsall x64
731740
ninja -C build %MBUILD_TARGET%
741+
ninja -C build -t missingdeps
732742
733743
check_world_script: |
734744
vcvarsall x64

0 commit comments

Comments
 (0)