Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
2 files changed
+142
No files matched your search
Vendored
+25
@@ -27,6 +27,31 @@ pipeline {
|
||||
sh 'cmake --build build/windows'
|
||||
}
|
||||
}
|
||||
stage('Package-Artifacts') {
|
||||
steps {
|
||||
sh '''
|
||||
rm -rf dist
|
||||
mkdir -p dist/native/windows
|
||||
mkdir -p dist/native/linux
|
||||
|
||||
# copy linux .so and .so.* files
|
||||
find build/linux -type f -name "*.so*" -exec cp {} dist/native/linux/ \\;
|
||||
|
||||
# copy windows dll files
|
||||
find build/windows -type f -name "*.dll" -exec cp {} dist/native/windows/ \\;
|
||||
|
||||
# create zip
|
||||
cd dist
|
||||
zip -r ../VoidLoader.zip native
|
||||
'''
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'VoidLoader.zip', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user