mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-22 19:02:24 -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
|
fi
|
||||||
|
|
||||||
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
||||||
|
if [[ "-$BUILD_TYPE-" == *-release-* ]]; then
|
||||||
$BUILD_TOOL package_source
|
$BUILD_TOOL package_source
|
||||||
|
|
||||||
if [[ "$BUILD_ARCH" == "amd64" ]]; then
|
if [[ "$BUILD_ARCH" == "amd64" ]]; then
|
||||||
$BUILD_TOOL copy_source_artifacts
|
$BUILD_TOOL copy_source_artifacts
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
$BUILD_TOOL realclean
|
$BUILD_TOOL realclean
|
||||||
|
|
||||||
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
|
||||||
cd "$HOME"
|
cd "$HOME"
|
||||||
|
|
||||||
VERSION=$(git -C /workspace describe --tags --match "v*" --dirty --abbrev=10)
|
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)
|
ctest --output-on-failure -j$(nproc)
|
||||||
|
|
||||||
if [[ "-$BUILD_TYPE-" == *-release-* ]]; then
|
|
||||||
$BUILD_TOOL strip
|
$BUILD_TOOL strip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -162,6 +161,6 @@ if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
|||||||
cp artifacts.env /tmp-runner
|
cp artifacts.env /tmp-runner
|
||||||
cp dwarfs-universal-* /tmp-runner/artifacts
|
cp dwarfs-universal-* /tmp-runner/artifacts
|
||||||
cp dwarfs-*-Linux*.tar.zst /tmp-runner/artifacts
|
cp dwarfs-*-Linux*.tar.zst /tmp-runner/artifacts
|
||||||
|
|
||||||
$BUILD_TOOL realclean
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$BUILD_TOOL realclean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user