GitHub CI: change build system to meson
[tinc] / .ci / warn / run.sh
index 65f46eb..a4b3d9d 100755 (executable)
@@ -3,20 +3,15 @@
 set -euo pipefail
 
 test -n "$CC"
-export CFLAGS="${CFLAGS:-} -Werror"
 
 result=0
 
 check_warnings() {
   git clean -dfx
-
-  autoreconf -fsi
-  # shellcheck disable=SC2046
-  ./configure $(sh .ci/conf.sh)
-  make -j"$(nproc)" all extra || result=$?
+  ./.ci/build.sh -Dwerror=true "$@" || result=$?
 }
 
 check_warnings
-check_warnings --disable-legacy-protocol
+check_warnings -Dcrypto=nolegacy
 
 exit $result