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)