Fix Linux and Windows cross-build
This commit is contained in:
Vendored
+11
-7
@@ -16,14 +16,18 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build Windows') {
|
stage('Build Windows') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
mkdir -p build/windows
|
mkdir -p build/windows
|
||||||
x86_64-w64-mingw32-g++ main.cpp -o build/windows/test_app.exe
|
x86_64-w64-mingw32-g++ main.cpp \
|
||||||
'''
|
-static \
|
||||||
}
|
-static-libgcc \
|
||||||
|
-static-libstdc++ \
|
||||||
|
-o build/windows/test_app.exe
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Run Linux') {
|
stage('Run Linux') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Reference in New Issue
Block a user