From 10bb22bb01a9bca4ade53a2d0c1817970a8d5c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D0=B8=D0=B9=20=D0=9F?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= Date: Fri, 1 May 2026 21:37:32 +0300 Subject: [PATCH] Fix Linux and Windows cross-build --- Jenkinsfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 95208eb..fdc281c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,14 +16,18 @@ pipeline { } } - stage('Build Windows') { - steps { - sh ''' - mkdir -p build/windows - x86_64-w64-mingw32-g++ main.cpp -o build/windows/test_app.exe - ''' - } + stage('Build Windows') { + steps { + sh ''' + mkdir -p build/windows + x86_64-w64-mingw32-g++ main.cpp \ + -static \ + -static-libgcc \ + -static-libstdc++ \ + -o build/windows/test_app.exe + ''' } +} stage('Run Linux') { steps {