mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
CI: Add zip package and archive artifacts as single zip file
This commit is contained in:
1 parent
b8e2ace91c
commit
2d1492f3e4
2 files changed
+3
-2
No files matched your search
@@ -14,6 +14,7 @@ RUN for i in 1 2 3 4 5; do \
|
||||
git \
|
||||
cmake \
|
||||
ninja-build \
|
||||
zip \
|
||||
gcc-mingw-w64-x86-64-posix \
|
||||
g++-mingw-w64-x86-64-posix \
|
||||
binutils-mingw-w64-x86-64 \
|
||||
|
||||
Vendored
+2
-2
@@ -13,14 +13,14 @@ pipeline {
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'docker run --rm -v "$WORKSPACE:/workspace" juiceagent-builder:latest bash -lc "cd /workspace && rm -rf build-mingw && cmake --preset mingw-release && cmake --build build-mingw"'
|
||||
sh 'docker run --rm -v "$WORKSPACE:/workspace" juiceagent-builder:latest bash -lc "cd /workspace && rm -rf build-mingw && cmake --preset mingw-release && cmake --build build-mingw && cd build-mingw/bin && zip -9 -j /workspace/JuiceAgent-windows-x64.zip *.exe *.dll"'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'build-mingw/bin/*.exe,build-mingw/bin/*.dll', fingerprint: true, allowEmptyArchive: false
|
||||
archiveArtifacts artifacts: 'JuiceAgent-windows-x64.zip', fingerprint: true, allowEmptyArchive: false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user