From 5986e158279dbb0fe6de70e841c16bc1e9702d9f Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 14 Oct 2024 16:58:56 +0200
Subject: [PATCH] releases: don't add static library to MinGW binary release
---
.github/workflows/release.yml | 4 ++--
build-scripts/release-info.json | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5403915e..3f150186 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -578,7 +578,7 @@ jobs:
cmake -S "${{ steps.src.outputs.path }}/cmake/test" \
-DCMAKE_BUILD_TYPE="Release" \
-DTEST_SHARED=TRUE \
- -DTEST_STATIC=TRUE \
+ -DTEST_STATIC=FALSE \
-DCMAKE_PREFIX_PATH="/tmp/deps-mingw" \
-DCMAKE_TOOLCHAIN_FILE="${{ steps.src.outputs.path }}/build-scripts/cmake-toolchain-mingw64-i686.cmake" \
-Werror=dev \
@@ -590,7 +590,7 @@ jobs:
cmake -S "${{ steps.src.outputs.path }}/cmake/test" \
-DCMAKE_BUILD_TYPE="Release" \
-DTEST_SHARED=TRUE \
- -DTEST_STATIC=TRUE \
+ -DTEST_STATIC=FALSE \
-DCMAKE_PREFIX_PATH="/tmp/deps-mingw" \
-DCMAKE_TOOLCHAIN_FILE="${{ steps.src.outputs.path }}/build-scripts/cmake-toolchain-mingw64-x86_64.cmake" \
-Werror=dev \
diff --git a/build-scripts/release-info.json b/build-scripts/release-info.json
index 15e125e0..49dba059 100644
--- a/build-scripts/release-info.json
+++ b/build-scripts/release-info.json
@@ -34,11 +34,12 @@
"cmake": {
"archs": ["x86", "x64"],
"args": [
+ "-DBUILD_SHARED_LIBS=ON",
"-DSDLTTF_HARFBUZZ=ON",
"-DSDLTTF_SAMPLES=OFF",
"-DSDLTTF_VENDORED=ON"
],
- "shared-static": "both"
+ "shared-static": "args"
},
"files": {
"": [