Fix Linux and Windows cross-build

This commit is contained in:
2026-05-01 21:37:32 +03:00
parent 5fb80c783f
commit 10bb22bb01
Vendored
+11 -7
View File
@@ -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 {