From 4923e49fe022be33e29a12f9d9ae2ef2ef8bd134 Mon Sep 17 00:00:00 2001 From: arabian Date: Sat, 10 Jan 2026 19:40:21 +0300 Subject: [PATCH] fix: static builds for windows --- .github/workflows/push.yml | 3 ++- .github/workflows/release.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index becfb58..2c4123a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -61,7 +61,8 @@ jobs: if: startsWith(runner.os, 'Windows') shell: msys2 {0} run: | - cmake . -G "MinGW Makefiles" + cmake . -G "MinGW Makefiles" \ + -DCMAKE_EXE_LINKER_FLAGS="-static -static-libgcc -static-libstdc++" cmake --build . - name: Configure and Build (Linux/macOS) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 914a583..da8b3aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,8 @@ jobs: if: startsWith(runner.os, 'Windows') shell: msys2 {0} run: | - cmake . -G "MinGW Makefiles" + cmake . -G "MinGW Makefiles" \ + -DCMAKE_EXE_LINKER_FLAGS="-static -static-libgcc -static-libstdc++" cmake --build . - name: Configure and Build (Linux/macOS)