CI: enable static build to catch static-linking issues

WITH_STATIC defaults to ON in CMakeLists.txt but CI was explicitly
disabling it. Remove -DWITH_STATIC=OFF so the static targets are
also built and linked, catching issues like the c-ares static
library rename (#3024).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Max Lv
2026-02-10 16:13:44 +08:00
co-authored by Claude Opus 4.6
parent 7ac8694aae
commit 716269d020
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
- name: Build
run: |
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_STATIC=OFF
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)
- name: Unit tests