Fix Linux and Windows cross-build
This commit is contained in:
Vendored
+11
-7
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user