mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-22 10:51:59 -04:00
chore: only rebuild static release, only copy source tarball once
This commit is contained in:
parent
7e40b3c34d
commit
7ff5196077
@ -115,15 +115,15 @@ if [[ "-$BUILD_TYPE-" == *-coverage-* ]]; then
|
||||
fi
|
||||
|
||||
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
||||
if [[ "-$BUILD_TYPE-" == *-release-* ]]; then
|
||||
$BUILD_TOOL package_source
|
||||
|
||||
if [[ "$BUILD_ARCH" == "amd64" ]]; then
|
||||
$BUILD_TOOL copy_source_artifacts
|
||||
fi
|
||||
fi
|
||||
|
||||
$BUILD_TOOL realclean
|
||||
$BUILD_TOOL realclean
|
||||
|
||||
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
||||
cd "$HOME"
|
||||
|
||||
VERSION=$(git -C /workspace describe --tags --match "v*" --dirty --abbrev=10)
|
||||
@ -148,7 +148,6 @@ if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
||||
|
||||
ctest --output-on-failure -j$(nproc)
|
||||
|
||||
if [[ "-$BUILD_TYPE-" == *-release-* ]]; then
|
||||
$BUILD_TOOL strip
|
||||
fi
|
||||
|
||||
@ -162,6 +161,6 @@ if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
||||
cp artifacts.env /tmp-runner
|
||||
cp dwarfs-universal-* /tmp-runner/artifacts
|
||||
cp dwarfs-*-Linux*.tar.zst /tmp-runner/artifacts
|
||||
|
||||
$BUILD_TOOL realclean
|
||||
fi
|
||||
|
||||
$BUILD_TOOL realclean
|
||||
|
Loading…
x
Reference in New Issue
Block a user